Added env variables

This commit is contained in:
Guillem Hernández Sola
2017-04-04 21:05:01 +02:00
parent 746cb6a710
commit 6c93009255

View File

@@ -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'