- Jenkins polls my repository and pull the jenkinsfile from it
The following jenkinsfile is executed
// --- Get sources from mercurial --- stage ('Checkout') { steps { bat "Hg purge --config extensions.purge= --all --print" checkout([$class: 'MercurialSCM', credentialsId: '', revision: 'default', source: 'MY_REPO']) } } // --- BUILD --- stage ('Build') { // my build } // --- DEPLOY MASTER --- stage ('Deploy') { when { tag "release*" } steps { bat "\"${env.WORKSPACE}\\jenkins\\deploy.bat\" \"M:\\dev-FU4\"" } }
![Screenshot of the build](https://istack.dev59.com/fhHGs.webp)
log --template \'{desc}\'
- 你的代码中缺少引号,所以模板无法工作。 - Violet Giraffe