Jenkins file does not execute 'stage 2'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins file does not execute 'stage 2'

gene golub
Hello All,

i am new user to Jenkins.
for some reasons below Jenkins file does not execute 'Stage 2'.
Any help would be apprecuated.

pipeline {
    agent any 
stages {
        stage('Stage 1') {
steps {
                bat "echo running batch file : %date% : %time%"
                bat "dir \"${env.WORKSPACE}\""
                /* bat "call \"${env.WORKSPACE}\"\\326a\\t4.bat" */
                bat "sqlcmd -S l390 -U gene -P xxx -i \"${env.WORKSPACE}\"\\326A\\t4.txt"
            }
        }
        stage('Stage 2') {
steps {
                bat "echo running stage 222"

            }
        }
    }
}

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ce5f5b5d-26c9-4291-afa0-8ddd293ac55co%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins file does not execute 'stage 2'

Baptiste MATHUS
Jenkins will default to stopping execution on the first error.
So I assume some command in the 'stage 1' failed and so it never reached the second one.

Le jeu. 23 juil. 2020 à 05:38, gene golub <[hidden email]> a écrit :
Hello All,

i am new user to Jenkins.
for some reasons below Jenkins file does not execute 'Stage 2'.
Any help would be apprecuated.

pipeline {
    agent any 
stages {
        stage('Stage 1') {
steps {
                bat "echo running batch file : %date% : %time%"
                bat "dir \"${env.WORKSPACE}\""
                /* bat "call \"${env.WORKSPACE}\"\\326a\\t4.bat" */
                bat "sqlcmd -S l390 -U gene -P xxx -i \"${env.WORKSPACE}\"\\326A\\t4.txt"
            }
        }
        stage('Stage 2') {
steps {
                bat "echo running stage 222"

            }
        }
    }
}

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ce5f5b5d-26c9-4291-afa0-8ddd293ac55co%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7wHiShy-JfZYOJW_ojJWd2yfViPfw-U6PC5SGdk4MDcw%40mail.gmail.com.