Last active
September 21, 2017 20:15
-
-
Save silveraid/02462f441e63534d7abc2c6c36b14582 to your computer and use it in GitHub Desktop.
Jenkinsfile reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IF statements | |
# Note: a variable which has value is true | |
if (var1) {} | |
else if (var1 || var && var3) {} | |
else if (var2) {} | |
else {} | |
// | |
// Data Structures | |
// | |
// Map of maps | |
def deployData = [test: [user: 'testuser', | |
host: 'testhost', | |
path: 'testpath'], | |
acceptance: [user: 'accuser', | |
host: 'acchost', | |
path: 'accpath'], | |
production: [user: 'produser', | |
host: 'prodhost', | |
path: 'prodpath']] | |
def deployData = [:] | |
deployData.test = [user: 'testuser', host: 'testhost', path: 'testpath'] | |
deployData.acceptance = [user: 'accuser', host: 'acchost', path: 'accpath'] | |
deployData.production = [user: 'produser', host: 'prodhost', path: 'prodpath'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment