Last active
July 14, 2017 07:55
-
-
Save conf/2cf44ea7fba37649397bc88feac21373 to your computer and use it in GitHub Desktop.
Declarative Pipeline Test
This file contains hidden or 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
echo Hello, I am $0! |
This file contains hidden or 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
echo Hello, I am $0! |
This file contains hidden or 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
echo Hello, I am $0! |
This file contains hidden or 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
@Library('globalLibrary') _ | |
pipeline { | |
agent any | |
options { | |
ansiColor('xterm') | |
timestamps() | |
timeout(time: 1, unit: 'HOURS') | |
} | |
environment { | |
MY_VAR = "1" | |
} | |
stages { | |
stage('Running a.sh') { | |
steps { | |
sh "./a.sh" | |
} | |
} | |
stage('Run jobs conf-b and conf-c in parallel') { | |
steps { | |
parallel( | |
"conf-b": { build job: 'conf-b', propagate: true }, | |
"conf-c": { build job: 'conf-c', propagate: true } | |
) | |
} | |
} | |
} | |
} |
This file contains hidden or 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
@Library('globalLibrary') _ | |
pipeline { | |
agent any | |
options { | |
ansiColor('xterm') | |
timestamps() | |
timeout(time: 1, unit: 'HOURS') | |
} | |
stages { | |
stage('Running b.sh') { | |
steps { | |
sh "./b.sh" | |
} | |
} | |
} | |
} |
This file contains hidden or 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
@Library('globalLibrary') _ | |
pipeline { | |
agent any | |
options { | |
ansiColor('xterm') | |
timestamps() | |
timeout(time: 1, unit: 'HOURS') | |
} | |
stages { | |
stage('Running c.sh') { | |
steps { | |
sh "./c.sh" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment