Jenkins multi : préparation pour traitement différent de master
Showing
1 changed file
with
4 additions
and
1 deletions
1 | #!groovy | 1 | #!groovy |
2 | node { | 2 | node { |
3 | stage 'Environment' | 3 | stage 'Environment' |
4 | - println scm.branches | 4 | + if (scm.branches == 'master') { |
5 | + println 'Nous sommes dans master' | ||
6 | + } | ||
7 | +// println scm.branches | ||
5 | 8 | ||
6 | stage 'Config' | 9 | stage 'Config' |
7 | def sonarqubeScannerHome = tool name: 'sonar', type: 'hudson.plugins.sonar.SonarRunnerInstallation' | 10 | def sonarqubeScannerHome = tool name: 'sonar', type: 'hudson.plugins.sonar.SonarRunnerInstallation' | ... | ... |
-
Please register or login to post a comment