Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage 'test'
- parallel (
- "scenario A": {
- node {
- echo 'dry run'
- }
- },
- "scenario B": {
- node {
- echo 'dry run'
- }
- }
- )
- stage 'build'
- node("docker") {
- echo 'dry run'
- }
- stage 'qa'
- node {
- withCredentials([usernamePassword(credentialsId: 'example_credential',
- passwordVariable: 'pass', usernameVariable: 'user')]) {
- USER=$user PASS=$pass testing_with_credentials
- }
- }
- stage 'deploy'
- node {
- echo 'dry run step 1'
- sh "sleep 4s"
- echo 'dry run step 2'
- sh "sleep 4s"
- echo 'dry run step 3'
- sh "sleep 4s"
- echo 'dry run step 4'
- sh "sleep 4s"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement