>
>  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.
>

Have you looked at flow 
control, https://jenkins.io/doc/book/pipeline/syntax/#flow-control ?

Another option is to use 'when' 
directive, https://jenkins.io/doc/book/pipeline/syntax/#when

/Ram 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4ea1006a-63c8-4359-9742-039c00f947fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to