[JIRA] (JENKINS-40262) Promotions created with job DSL are not visible

2017-01-15 Thread imriz...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Imri Zvik closed an issue as Duplicate  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Looking into this more carefully, it seems that this is actually a duplicate of JENKINS-41029, and maybe another small bug In my specific case, I had promotions both in the template (using()) and in the DSL it self. This resulted this badly formatted XML: 

 


"promoted-builds@2.29-SNAPSHOT">

from_template


"promoted-builds@2.29-SNAPSHOT">

from_dsl



 

 Also, the "from_dsl" promotion got copied fully into the generated job, but the "from_template" was only copied into the xml. When you try to go to promotion in the UI in this state, the screen will be empty. Going into the job configuration, and clicking on save will remove the first promotion (from template), and will make the "from_dsl" one visible.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-40262  
 
 
  Promotions created with job DSL are not visible   
 

  
 
 
 
 

 
Change By: 
 Imri Zvik  
 
 
Status: 
 Open Closed  
 
 
Resolution: 
 Duplicate  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 
 

[JIRA] (JENKINS-40262) Promotions created with job DSL are not visible

2016-12-06 Thread imriz...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Imri Zvik commented on  JENKINS-40262  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Promotions created with job DSL are not visible   
 

  
 
 
 
 

 
 It seems like https://github.com/jenkinsci/promoted-builds-plugin/pull/76 and https://github.com/jenkinsci/promoted-builds-plugin/pull/82 didn't take each other into account.  
 

  
 
 
 
 

 
 
 

 
 
 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-40262) Promotions created with job DSL are not visible

2016-12-06 Thread imriz...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Imri Zvik updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40262  
 
 
  Promotions created with job DSL are not visible   
 

  
 
 
 
 

 
Change By: 
 Imri Zvik  
 

  
 
 
 
 

 
 I have a very simple promotion:{code}  promotion {  name('Production')  icon("star-gold")   visible(true)   conditions {  manual('teamA,teamB')  }  actions {copyArtifacts('$PROMOTED_JOB_NAME') {  includePatterns('envInject.properties')  buildSelector { buildNumber('$PROMOTED_NUMBER')  } }  downstreamParameterized {trigger("Dist-To-Prod"){ block { buildStepFailure('never') failure('FAILURE') unstable('UNSTABLE') } parameters { propertiesFile('envInject.properties',true) }}  }  }  }{code}When I go to the generated job promotion status, I don't see anything.If I go to the job configuration, and without changing anything, click on "Save", the promotions become visible.Looking the promotion XML, it seems like the isVisible element is missing.Am I missing something?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

[JIRA] (JENKINS-40262) Promotions created with job DSL are not visible

2016-12-06 Thread imriz...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Imri Zvik created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40262  
 
 
  Promotions created with job DSL are not visible   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Daniel Spilker  
 
 
Components: 
 job-dsl-plugin, promoted-builds-plugin  
 
 
Created: 
 2016/Dec/06 8:33 PM  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Imri Zvik  
 

  
 
 
 
 

 
 I have a very simple promotion: 

 

  promotion {
  name('Production')
  icon("star-gold")
  visible(true)
  conditions {
  manual('teamA,teamB')
  }
  actions {
copyArtifacts('$PROMOTED_JOB_NAME') {
  includePatterns('envInject.properties')
  buildSelector {
  buildNumber('$PROMOTED_NUMBER')
  }
 }
  downstreamParameterized {
trigger("Dist-To-Prod"){
  block {
  buildStepFailure('never')
  failure('FAILURE')
  unstable('UNSTABLE')
  }
  parameters {
propertiesFile('envInject.properties',true)
  }
}
  }
  }
  }
 

 When I go to the generated job promotion status, I don't see anything. If I go to the job configuration, and without changing anything, click on "Save", the promotions become visible. Looking the promotion XML, it seems like the isVisible element is missing. Am I missing something?