Advertisement
Guest User

Untitled

a guest
Sep 10th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.41 KB | None | 0 0
  1. pipeline {
  2.   stage("Do multiple things in parallel and then commit them") {
  3.     agent { label "master" }
  4.     stages {
  5.       stage("Checkout") {
  6.         docheckout()
  7.       }
  8.       parallel {
  9.         stage("1") {
  10.           sh "do stuff 1"
  11.         }
  12.         stage("2") {
  13.           sh "do stuff 2"
  14.         }
  15.       }
  16.       stage("Commit") {
  17.         sh "git commit && git push origin"
  18.       }
  19.     }
  20.   }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement