From cad354e4c226a4804c4db624cc0b254bc392c453 Mon Sep 17 00:00:00 2001 From: Joao Juvenal Vitorino Junior Date: Mon, 5 Mar 2018 18:57:56 -0300 Subject: [PATCH] Add new file --- Jenkinsfile | 12 ++++++++++++ 1 file changed, 12 insertions(+), 0 deletions(-) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..bb3d25a --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,12 @@ +stage 'Init' +node { + checkout scm + sh 'echo $BRANCH_NAME' +} +if (env.BRANCH_NAME == 'master') { + stage 'Only on master' + println 'This happens only on master' +} else { + stage 'Other branches' + println "Current branch ${env.BRANCH_NAME}" +} \ No newline at end of file -- libgit2 0.21.2