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

[FIXED JENKINS-44149] Properly clean up old props/triggers/params #157

Merged
merged 1 commit into from May 19, 2017

Conversation

abayer
Copy link
Member

@abayer abayer commented May 18, 2017

  • JENKINS issue(s):
  • Description:
    • Previously we weren't calling the properties step if there were no properties (i.e., no job properties from options, no triggers, no parameters), but that left lurking properties when you removed all properties, triggers and parameters from the Jenkinsfile. So now let's check the job config to see if there were already defined properties before deciding not to call the properties step. Also make sure that PipelineTriggersJobProperty and ParametersDefinitionProperty are not empty, rather than just present.
  • Documentation changes:
    • n/a
  • Users/aliases to notify:

Previously we weren't calling the properties step if there were no
properties (i.e., no job properties from options, no triggers, no
parameters), but that left lurking properties when you removed all
properties, triggers and parameters from the Jenkinsfile. So now let's
check the job config to see if there were *already* defined properties
before deciding not to call the properties step. Also make sure that
PipelineTriggersJobProperty and ParametersDefinitionProperty are not
empty, rather than just present.
@abayer abayer added this to the 1.1.5 milestone May 18, 2017
@abayer abayer requested a review from rsandell May 18, 2017 17:18
@ghost
Copy link

ghost commented May 18, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@abayer abayer changed the title [FIXED JENKINS-44149] Probably clean up old props/triggers/params [FIXED JENKINS-44149] Properly clean up old props/triggers/params May 18, 2017
Copy link
Member

@rsandell rsandell left a comment

Choose a reason for hiding this comment

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

🐝

@abayer abayer merged commit ddf519b into jenkinsci:master May 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants