[JIRA] (JENKINS-36453) Replay does not reuse commit on non-multibranch pipeline jobs

2020-05-06 Thread brian.murr...@intel.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Brian J Murrell commented on  JENKINS-36453  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Replay does not reuse commit on non-multibranch pipeline jobs   
 

  
 
 
 
 

 
 
 
Replay is actually not the central issue. scm for a CpsScmFlowDefinition is not guaranteed to match the commit of Jenkinsfile. This is because it is using hudson.model.SCM, i.e., the old core APIs, which do not support checking out a specific version. In order to fix this we would have to actually deprecate CpsScmFlowDefinition and provide a replacement using scm-api so it would behave more like multibranch, except of course for a predefined branch.
 Is this why, when I Replay a given build of a given multi-branch pipeline job, the Jenkinsfile is checked out at the commit build I'm Replaying was at, however a checkout in the pipeline job does not get the same commit? Is it because the scm.branches doesn't point at the commit of the Replay but rather points at the branch? If so, this is pretty horrible. Shouldn't one be able to depend on the global scm variable containing an accurate representation of what is being checked out (implicitly)? Why does the implicit checkout get the right commit and yet an explicit checkout doesn't?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view 

[JIRA] (JENKINS-36453) Replay does not reuse commit on non-multibranch pipeline jobs

2018-03-13 Thread nicos.ma...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nicos Maris updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-36453  
 
 
  Replay does not reuse commit on non-multibranch pipeline jobs   
 

  
 
 
 
 

 
Change By: 
 Nicos Maris  
 
 
Priority: 
 Minor Major  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-36453) Replay does not reuse commit on non-multibranch pipeline jobs

2017-03-23 Thread jdu...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 James Dumay commented on  JENKINS-36453  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Replay does not reuse commit on non-multibranch pipeline jobs   
 

  
 
 
 
 

 
 Jesse Glick great explanation  I think we are going to put less emphasis on this job type in the UI in the future so I'd imagine this isn't as high priority as I thought it might be.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-36453) Replay does not reuse commit on non-multibranch pipeline jobs

2017-03-23 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick assigned an issue to Unassigned  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Replay is actually not the central issue. scm for a CpsScmFlowDefinition is not guaranteed to match the commit of Jenkinsfile. This is because it is using hudson.model.SCM, i.e., the old core APIs, which do not support checking out a specific version. In order to fix this we would have to actually deprecate CpsScmFlowDefinition and provide a replacement using scm-api so it would behave more like multibranch, except of course for a predefined branch.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-36453  
 
 
  Replay does not reuse commit on non-multibranch pipeline jobs   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Issue Type: 
 Improvement New Feature  
 
 
Component/s: 
 workflow-cps-plugin  
 
 
Component/s: 
 pipeline  
 
 
Assignee: 
 Jesse Glick  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

   

[JIRA] (JENKINS-36453) Replay does not reuse commit on non-multibranch pipeline jobs

2016-07-07 Thread i...@ivan.net.nz (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ivan Meredith updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-36453  
 
 
  Replay does not reuse commit on non-multibranch pipeline jobs   
 

  
 
 
 
 

 
Change By: 
 Ivan Meredith  
 

  
 
 
 
 

 
 In multibranch jobs, if you 'replay' a build it will reuse the git commit (and assume svn revision etc) of the build in the replay.But with non-multibranch pipeline jobs, the latest commit is always used no matter what build is replayed.It may have something to do with 'checkout scm' vs 'git url:' being used, but either way I think it should work  ine  in the  same.  
 

  
 
 
 
 

 
 
 

 
 
 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-36453) Replay does not reuse commit on non-multibranch pipeline jobs

2016-07-05 Thread i...@ivan.net.nz (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ivan Meredith created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-36453  
 
 
  Replay does not reuse commit on non-multibranch pipeline jobs   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Assignee: 
 Jesse Glick  
 
 
Components: 
 workflow-plugin  
 
 
Created: 
 2016/Jul/05 10:01 PM  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Ivan Meredith  
 

  
 
 
 
 

 
 In multibranch jobs, if you 'replay' a build it will reuse the git commit (and assume svn revision etc) of the build in the replay. But with non-multibranch pipeline jobs, the latest commit is always used no matter what build is replayed. It may have something to do with 'checkout scm' vs 'git url:' being used, but either way I think it should work ine same.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment