-
Notifications
You must be signed in to change notification settings - Fork 213
/
Copy pathbuildOnDevelop.groovy
34 lines (31 loc) · 1.08 KB
/
buildOnDevelop.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pipeline {
agent {
label 'ovmscheck'
}
stages {
stage('Configure') {
steps {
script {
checkout scm
shortCommit = sh(returnStdout: true, script: "git log -n 1 --pretty=format:'%h'").trim()
echo shortCommit
}
}
}
stage("Run rebuild on develop branch"){
steps{
parallel ( "Run ovms recompile build on Ubuntu": {
node('ovmscheck'){
build job: "ovmsc/ubuntu/ubuntu-ovms-recompile-develop", parameters: [[$class: 'StringParameterValue', name: 'OVMSCCOMMIT', value: shortCommit]]
}
},
"Run ovms recompile on Redhat" : {
node('ovmscheck'){
build job: "ovmsc/redhat/redhat-ovms-recompile-develop", parameters: [[$class: 'StringParameterValue', name: 'OVMSCCOMMIT', value: shortCommit]]
}
}
)
}
}
}
}