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

Add support for alwaysPull in docker agent #437

Merged

Conversation

nre-ableton
Copy link
Contributor

Adds support for the alwaysPull attribute of docker blocks in declarative pipelines. Fixes #432.

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

The current test asserts that `image` is never the first argument. In
fact, the order of arguments isn't guaranteed, so we should only
assert that `image: someVar` is contained in the stacktrace.
@nre-ableton
Copy link
Contributor Author

nre-ableton commented Nov 19, 2021

@dblock -- I'm adding you as a reviewer because there aren't any other active maintainers these days. Do the changes in this PR look ok to you?

@nre-ableton nre-ableton requested a review from dblock November 19, 2021 14:26
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Didn't expect you to do it, but this helps a lot ;)

@nre-ableton nre-ableton merged commit 97a1c61 into jenkinsci:master Nov 19, 2021
@nre-ableton nre-ableton deleted the nre/master/dockerimage-alwayspull branch November 19, 2021 15:43
@nre-ableton
Copy link
Contributor Author

@dblock Well, I normally stay away from the declarative stuff, since I don't use the declarative API and am completely unfamiliar with it, but changes like this are pretty easy to make.

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.

Add support for DockerImage/alwaysPull
2 participants