From 6c9300925543c16630a2528817508f3cb0247162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Hern=C3=A1ndez=20Sola?= Date: Tue, 4 Apr 2017 21:05:01 +0200 Subject: [PATCH] Added env variables --- 07-ionic-pipeline-mobile.groovy | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/07-ionic-pipeline-mobile.groovy b/07-ionic-pipeline-mobile.groovy index 435e605..852a85f 100644 --- a/07-ionic-pipeline-mobile.groovy +++ b/07-ionic-pipeline-mobile.groovy @@ -1,11 +1,22 @@ pipeline { agent any + environment { + ENV = '$OS' + } tools { maven "maven_jenkins" jdk "java_jenkins" nodejs "nodejs" } stages { + stage ('Deploy') { + when { + environment name: "ENV", value: "android" + } + steps { + echo 'Android execution' + } + } stage('Checkout') { steps { git url: 'https://guillemhs@bitbucket.org/itnove/myexampleapp.git'