Skip to content
Snippets Groups Projects
Commit e0526147 authored by Christian Mauch's avatar Christian Mauch
Browse files

This is ebrains-4.0

parent 5c9c32bc
No related branches found
No related merge requests found
@Library("jenlib") _ @Library("jenlib@ebrains-4.0") _
Map<String, Object> bss1PipelineArgs = [container : [app: "wafer"], // Don't build BSS1
configureInstallOptions: "--without-pybind", //Map<String, Object> bss1PipelineArgs = [container : [app: "wafer"],
notificationChannel: "#visionary-wafer-users"] // configureInstallOptions: "--without-pybind",
// notificationChannel: "#visionary-wafer-users"]
Map<String, Object> bss2PipelineArgs = [container : [app: "dls"], Map<String, Object> bss2PipelineArgs = [container : [app: "dls"],
setupOptions : "--release-branch=ebrains-4.0",
notificationChannel: "#dls-software"] notificationChannel: "#dls-software"]
// BSS-2 // BSS-2
...@@ -15,7 +17,10 @@ withCcache() { ...@@ -15,7 +17,10 @@ withCcache() {
try { try {
Boolean isMergeEvent = env.GERRIT_EVENT_TYPE == "change-merged" Boolean isMergeEvent = env.GERRIT_EVENT_TYPE == "change-merged"
Boolean isSuccessful = currentBuild.currentResult == "SUCCESS" Boolean isSuccessful = currentBuild.currentResult == "SUCCESS"
Boolean doDeploy = isMergeEvent && isSuccessful
// We do not deploy hwdb in ebrains-4.0
//Boolean doDeploy = isMergeEvent && isSuccessful
Boolean doDeploy = false
conditionalStage(name: "Yaml Deployment", skip: !doDeploy) { conditionalStage(name: "Yaml Deployment", skip: !doDeploy) {
runOnSlave(label: "frontend") { runOnSlave(label: "frontend") {
...@@ -47,47 +52,47 @@ runOnSlave(label: "frontend") { ...@@ -47,47 +52,47 @@ runOnSlave(label: "frontend") {
cleanWs() cleanWs()
} }
// BSS-1 //// BSS-1
withCcache() { //withCcache() {
wafDefaultPipeline([projects: ["hwdb"]] << bss1PipelineArgs) // wafDefaultPipeline([projects: ["hwdb"]] << bss1PipelineArgs)
} //}
//
// Syntax Check, to be migrated to a waf test (issue #3604) //// Syntax Check, to be migrated to a waf test (issue #3604)
stage("Syntax Check") { //stage("Syntax Check") {
inSingularity(bss1PipelineArgs["container"]) { // inSingularity(bss1PipelineArgs["container"]) {
runOnSlave(label: "frontend") { // runOnSlave(label: "frontend") {
jesh("python -c \"import yaml; [None for elem in yaml.load_all(open('hwdb/db.yaml'), Loader=yaml.FullLoader)]\"") // jesh("python -c \"import yaml; [None for elem in yaml.load_all(open('hwdb/db.yaml'), Loader=yaml.FullLoader)]\"")
} // }
} // }
} //}
//
try { //try {
Boolean isMergeEvent = env.GERRIT_EVENT_TYPE == "change-merged" // Boolean isMergeEvent = env.GERRIT_EVENT_TYPE == "change-merged"
Boolean isSuccessful = currentBuild.currentResult == "SUCCESS" // Boolean isSuccessful = currentBuild.currentResult == "SUCCESS"
Boolean doDeploy = isMergeEvent && isSuccessful // Boolean doDeploy = isMergeEvent && isSuccessful
//
conditionalStage(name: "Yaml Deployment", skip: !doDeploy) { // conditionalStage(name: "Yaml Deployment", skip: !doDeploy) {
runOnSlave(label: "frontend") { // runOnSlave(label: "frontend") {
jesh("cd /wang/data/bss-hwdb && " + // jesh("cd /wang/data/bss-hwdb && " +
"umask 002 && " + // allow F9 to write stuff too // "umask 002 && " + // allow F9 to write stuff too
"cp ${WORKSPACE}/hwdb/db.yaml .db.yaml.tmp && " + // "cp ${WORKSPACE}/hwdb/db.yaml .db.yaml.tmp && " +
"mv .db.yaml.tmp db.yaml") // "mv .db.yaml.tmp db.yaml")
} // }
} // }
//
conditionalStage(name: "Module Deployment", skip: !doDeploy) { // conditionalStage(name: "Module Deployment", skip: !doDeploy) {
runOnSlave(label: "frontend") { // runOnSlave(label: "frontend") {
inSingularity(bss1PipelineArgs["container"]) { // inSingularity(bss1PipelineArgs["container"]) {
deployModule([name : "hwdb_bss1", // deployModule([name : "hwdb_bss1",
source: "bin/ lib/ repos_log.txt"]) // source: "bin/ lib/ repos_log.txt"])
} // }
} // }
} // }
} catch (Throwable t) { //} catch (Throwable t) {
notifyFailure(mattermostChannel: bss1PipelineArgs["notificationChannel"]) // notifyFailure(mattermostChannel: bss1PipelineArgs["notificationChannel"])
throw t // throw t
} //}
//
if (currentBuild.currentResult != "SUCCESS") { //if (currentBuild.currentResult != "SUCCESS") {
notifyFailure(mattermostChannel: bss1PipelineArgs["notificationChannel"]) // notifyFailure(mattermostChannel: bss1PipelineArgs["notificationChannel"])
} //}
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
host=brainscales-r.kip.uni-heidelberg.de host=brainscales-r.kip.uni-heidelberg.de
port=29418 port=29418
project=hwdb project=hwdb
defaultbranch=master defaultbranch=ebrains-4.0
defaultremote=review defaultremote=review
defaultrebase=0 defaultrebase=0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment