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

[JENKINS-58574] Fix inheritance of showRawYaml #556

Merged
merged 2 commits into from Jul 29, 2019

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Jul 26, 2019

@@ -0,0 +1,34 @@
podTemplate(showRawYaml: false) { podTemplate(yaml: """
Copy link
Member

Choose a reason for hiding this comment

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

BTW prefer ''' to """ (and ' to ") whenever you are not actually using Groovy interpolation.

env:
- name: CONTAINER_ENV_VAR
value: container-env-var-value
- name: CONTAINER_ENV_VAR_FROM_SECRET
Copy link
Member

Choose a reason for hiding this comment

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

This is not actually used by the test AFAICT.

kind: Pod
metadata:
labels:
some-label: some-label-value
Copy link
Member

Choose a reason for hiding this comment

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

Could be omitted?

@Vlatombe Vlatombe merged commit a9df9a1 into jenkinsci:master Jul 29, 2019
@Vlatombe Vlatombe deleted the JENKINS-58574 branch July 29, 2019 07:35
@Vlatombe Vlatombe added the bug Bug Fixes label Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug Fixes
Projects
None yet
2 participants