Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable multiple replay script overrides via Jenkins CLI #227

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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
1 participant