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

Review new "options" and audit project scripts #26

Open
phillipjohnston opened this issue Aug 10, 2018 · 0 comments
Open

Review new "options" and audit project scripts #26

phillipjohnston opened this issue Aug 10, 2018 · 0 comments

Comments

@phillipjohnston
Copy link
Member

https://jenkins.io/blog/2018/04/09/whats-in-declarative/

New options

The options directive in Declarative can contain a number of different kinds of configuration: traditional Jenkins job properties, like buildDiscarder, wrapper steps to execute the entire Pipeline within, like timeout, and Declarative-specific options that can switch from some default behaviors of Declarative execution. We’ve added two new Declarative-specific options in the last few releases.

  • checkoutToSubdirectory - Allows you to override the location that the automatic SCM checkout will use. Using checkoutToSubdirectory("foo"), your Pipeline will checkout your repository to "$WORKSPACE/foo", rather than the default of "$WORKSPACE".
  • newContainerPerStage - If you’re using a top-level docker or dockerfile agent, and want to ensure that each of your stages run in a fresh container of the same image, you can use this option. Any stage without its own agent specified will run in a new container using the image you’ve specified or built, on the same computer and with access to the same workspace.
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

No branches or pull requests

1 participant