[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-02-10 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 Code changed in jenkins User: Jesse Glick Path: src/main/resources/org/jenkinsci/plugins/workflow/multibranch/JobPropertyStep/help.html http://jenkins-ci.org/commit/workflow-multibranch-plugin/5c7f723cd8b807a8c7ff10d349c55c531a2860ea Log: Emphasize JENKINS-41146.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-02-08 Thread as_kuml...@yahoo.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ali Sadik Kumlali commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 workflow-multibranch's documentation for properties step is not clear in that manner. It only says properties step "updates" the properties. It is not clear that it will override all properties configured in this job, either from the UI or from an earlier properties step. 
 
properties: Set job properties 
Updates the properties of the job which runs this step. Mainly useful from multibranch Pipelines, so that Jenkinsfile itself can encode what would otherwise be static job configuration.
  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-27 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick resolved as Not A Defect  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 As designed. I will emphasize this behavior in the step documentation though.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-41146  
 
 
  SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Not A Defect  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.

[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-25 Thread dyer.d.jonat...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Dyer commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 Patrick Wolf, the declarative syntax looks very promising! I agree with the sentiment of "config as code" however JENKINS-33273 and our large codebase forced me to rely upon a simple pipeline job and I tried to leverage both the pipeline properties and the ease of changing job config on a whim and got unexpected results. I have since switched to just using the pipeline properties exclusively.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-25 Thread dyer.d.jonat...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Dyer commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 James Dumay, I wouldn't have expected using it to first, update the jobs configuration on disk and second, to touch properties not explicitly set in the pipeline. Maybe just make it more clear that this is the default behaviour rather than just spitting out warnings in the build log.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-24 Thread pw...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Patrick Wolf commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 We couldn't find an easy way to do some properties but not all in settings in the current configuration.The best way forward is to use everything as config as code. We are trying to push Jenkins in that direction.  The good news is that the new Declarative Syntax makes it much easier to define these properties in your Jenkinsfile. On top of that the new Pipeline Editor being developed with Blue Ocean will let you configure these settings in your Jenkinsfile with a GUI.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-24 Thread jdu...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 James Dumay commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 What do you want it to do instead?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-24 Thread dyer.d.jonat...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Dyer commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 You're absolutely right, it does mention that in the build logs. 
 
WARNING: The properties step will remove all JobPropertys currently configured in this job, either from the UI or from an earlier properties step. This includes configuration for discarding old builds, parameters, concurrent builds and build triggers. WARNING: Removing existing job property 'Discard old builds' WARNING: Removing existing job property 'Do not allow concurrent builds' WARNING: Removing existing job property 'This project is parameterized' WARNING: Removing existing job property 'Build triggers'
 I'm still not a fan of this behaviour   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-23 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 Yup, that's, for good or for ill, by design. If you check your build's logs, you'll see it warning you that you're overwriting your properties.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-20 Thread dyer.d.jonat...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Dyer commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 An even more simple test of a pipeline job with just  

 
properties([]) 

  will cause all properties to be overwritten/removed with defaults.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-20 Thread dyer.d.jonat...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Dyer commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 James Dumay,  

 

// Setup Job properties
properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '30', numToKeepStr: '')), disableConcurrentBuilds(), pipelineTriggers([])])
 

 The offending bit is "pipelineTriggers([])". It's now my understanding that any properties defined within the pipeline script will supersede and overwrite on disk the properties manually set on the Job itself. I have tested this theory and created a job with a single build parameter, then used the exact same properties I noted above which has no mention of build parameters. The initial run allowed me to select a build parameter, but after that the config changed and it was no longer an option. So it appears that pipeline properties will override all configurations it is able to, regardless if specified within the pipeline script or not.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com

[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-19 Thread jdu...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 James Dumay updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-41146  
 
 
  SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
Change By: 
 James Dumay  
 
 
Component/s: 
 blueocean-plugin  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-19 Thread jdu...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 James Dumay commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 Jonathan Dyer would you be able to post the Pipeline here that demonstrated the original problem? We might be able to make the error handling here a lot better.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-18 Thread dyer.d.jonat...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Dyer commented on  JENKINS-41146  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
 I've discovered the issue, in my pipeline script I was defining job properties and it had an empty pipelineTriggers section. It wasn't clear to me that this script would actually modify the config.xml on the master, and that not using a build trigger initially in the snippet generator it would default to being empty thus removing any build triggers within the config.xml.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-17 Thread dyer.d.jonat...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Dyer updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-41146  
 
 
  SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
Change By: 
 Jonathan Dyer  
 

  
 
 
 
 

 
 I setup a Pipeline job using a Pipeline script written in the job (not in SCM) and enabled SCM polling as a Build Trigger.The polling mechanism works and triggers a build after detecting changes, however whenever it polls there is a high chance that the config.xml will be modified, removing the SCM Trigger entirely. !image-2017-01-17-14-43-37-557.png|thumbnail! I used the Job Configuration History plugin and it shows the changes happening from SYSTEM user. !image-2017-01-17-14-41-29-596.png|thumbnail!  Looking through jenkins.log doesn't provide much information either, as this is the only entry around the same time as the SYSTEM user updates the config.xml  {quote}  Jan 17, 2017 2:17:24 PM hudson.triggers.SCMTrigger$Runner run  INFO: SCM changes detected in unified-trunk. Triggering  #84  {quote}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 
 

[JIRA] (JENKINS-41146) SCM Trigger configuration being overwritten by SYSTEM user in Pipeline

2017-01-17 Thread dyer.d.jonat...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Dyer created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-41146  
 
 
  SCM Trigger configuration being overwritten by SYSTEM user in Pipeline   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Attachments: 
 image-2017-01-17-14-41-29-596.png, image-2017-01-17-14-43-37-557.png  
 
 
Components: 
 blueocean-plugin, pipeline  
 
 
Created: 
 2017/Jan/17 6:50 PM  
 
 
Environment: 
 Jenkins 2.8  BlueOcean 1.0.0-b17  CentOS 6.7  java version "1.7.0_101"  OpenJDK Runtime Environment (rhel-2.6.6.4.el6_8-x86_64 u101-b00)  OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)   
 
 
Labels: 
 pipeline blueocean  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Jonathan Dyer  
 

  
 
 
 
 

 
 I setup a Pipeline job using a Pipeline script written in the job (not in SCM) and enabled SCM polling as a Build Trigger. The polling mechanism works and triggers a build after detecting changes, however whenever it polls there is a high chance that the config.xml will be modified, removing the SCM Trigger entirely.   I used the Job Configuration History plugin and it shows the changes happening from SYSTEM user.