Skip to content

Instantly share code, notes, and snippets.

@coolpalani
Forked from yershalom/Jenkinsfile
Created September 6, 2019 13:04
Show Gist options
  • Save coolpalani/b36057ad786784a0e4866ab1f5a9f259 to your computer and use it in GitHub Desktop.
Save coolpalani/b36057ad786784a0e4866ab1f5a9f259 to your computer and use it in GitHub Desktop.
pipeline {
agent {
node {
label 'master'
}
}
stages {
stage('android') {
steps {
echo 'android..'
}
}
stage('iOS') {
steps {
echo 'iOS..'
}
}
stage('publish') {
environment {
ACCESS_KEY = credentials('my-prefined-secret-text')
USER_PASS = credentials('USERPASS')
}
steps {
echo 'publish....'
echo "${env.ACCESS_KEY}"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment