Hi All,
I am very much new to Jenkins. I need your help.
I have 2 jobs:
Misc_Jobs/VM_Request_And_Validation
Misc_Jobs/SS_Install_Jboss
I have created one simple pipeline using Groovy Pipelines where the jobs should run one after another.
node {
stage('Build Virtual Machine') {
build job: 'Misc_Jobs/VM_Request_And_Validation', parameters: [
string(name: 'Hostname', value:'satclient8'),
string(name:'DSType', value: "NAS")], wait: true
}
stage('Post Installation Stage') {
build job: 'Misc_Jobs/SS_Install_Jboss', parameters: [
string(name: 'Hostname', value:'satclient8'),
string(name:'DSType', value: "NAS")]
}
}
node {
stage('Build Virtual Machine') {
build job: 'Misc_Jobs/VM_Request_And_Validation', parameters: [
string(name: 'Hostname', value:'satclient8'),
string(name:'DSType', value: "NAS")], wait: true
}
stage('Post Installation Stage') {
build job: 'Misc_Jobs/SS_Install_Jboss', parameters: [
string(name: 'Hostname', value:'satclient8'),
string(name:'DSType', value: "NAS")]
}
}
However I observed that the second job start running immediately after the first one.