Skip to content

Conversation

@sic-bre
Copy link

@sic-bre sic-bre commented May 10, 2018

This is an extension of the -s flag in replay-pipeline for Jenkins CLI.

I've added a new flag (-S) that accepts a tarball of scripts, which override multiple scripts at once. This allows me (and others, hopefully) to develop complex pipeline scripts locally, and test the scripts against a development instance of Jenkins before committing them to source control.

I suspect there are some things to clean up, and I'm happy to do so, if I could get a review.

Using this looks like:

tar cf scripts.tar -- Script1 Jenkinsfile

java -jar <JENKINS_CLI> replay-pipeline <job> -n <build_id> -S < scripts.tar

Thanks

…rball with multiple script files to override at once
@sic-bre sic-bre force-pushed the feature-tar-script-override branch 2 times, most recently from f5621f5 to 7339e93 Compare May 10, 2018 18:39
@sic-bre sic-bre force-pushed the feature-tar-script-override branch from 7339e93 to 0af21cf Compare May 10, 2018 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant