Re: Jenkins file does not execute 'stage 2'

4 views
Skip to first unread message

Baptiste Mathus

unread,
Aug 13, 2020, 5:39:34 AM8/13/20
to jenkins...@googlegroups.com
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 <golub...@gmail.com> 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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ce5f5b5d-26c9-4291-afa0-8ddd293ac55co%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages