Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- agent {
- node {
- label "$LABEL" //get node label as parameter. This label has only 1 node agent
- customWorkspace "/sen/home/jenkins_jobs/${env.JOB_BASE_NAME}/"
- }
- }
- stages {
- stage('declarative parallel') {
- parallel {
- stage('tiny repos') {
- steps {
- sh(script: "sudo python scripts/run_gc.py -repofile tiny.txt")
- }
- }
- stage('small repos') {
- steps {
- sh(script: "sudo python scripts/run_gc.py -repofile small.txt")
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment