Commit cad354e4c226a4804c4db624cc0b254bc392c453

Authored by Joao Vitorino
1 parent b13de830
Exists in master

Add new file

Showing 1 changed file with 12 additions and 0 deletions   Show diff stats
Jenkinsfile 0 → 100644
... ... @@ -0,0 +1,12 @@
  1 +stage 'Init'
  2 +node {
  3 + checkout scm
  4 + sh 'echo $BRANCH_NAME'
  5 +}
  6 +if (env.BRANCH_NAME == 'master') {
  7 + stage 'Only on master'
  8 + println 'This happens only on master'
  9 +} else {
  10 + stage 'Other branches'
  11 + println "Current branch ${env.BRANCH_NAME}"
  12 +}
0 13 \ No newline at end of file
... ...