[JIRA] (JENKINS-47286) Support skipping stages in scripted pipelines for nice visualization in blue ocean and classic UI stage view

2019-04-11 Thread mihai.dinu.1...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Dinu edited a comment on  JENKINS-47286  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Support skipping stages in scripted pipelines for nice visualization in blue ocean and classic UI stage view   
 

  
 
 
 
 

 
 There's a nice post here: **[https://comquent.de/en/skipped-stages-in-jenkins-scripted-pipeline/] that describes how to use the [https://github.com/comquent/imperative-when] workaround. I have a related question though: is it possible to show the stages that follow a failed stage as skipped (or failed)? My use case is something like this{code:java}node {try {stage('Will fail') {sh 'exit 1'}stage('Some operations') {echo 'This stage should run when previous stage is successful'echo 'Should be skipped or failed when previous stage fails'}} catch (err) {echo "Print the error from the first stage $err"}finally {stage('Post build') {echo 'Always do some cleanup ops'}}}{code} The problem that I'm facing is that any stage from my pipeline can fail and I want all my downstream stages to be skipped, except the post build one. When a stage fails, it is caught in the  `catch`  *_catch_*  block and so all downstream stages are ignored, ruining the pipeline stage view from the job UI. Any possible solutions for this?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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-47286) Support skipping stages in scripted pipelines for nice visualization in blue ocean and classic UI stage view

2019-04-11 Thread mihai.dinu.1...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Dinu commented on  JENKINS-47286  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Support skipping stages in scripted pipelines for nice visualization in blue ocean and classic UI stage view   
 

  
 
 
 
 

 
 There's a nice post here: **https://comquent.de/en/skipped-stages-in-jenkins-scripted-pipeline/ that describes how to use the https://github.com/comquent/imperative-when workaround.  I have a related question though: is it possible to show the stages that follow a failed stage as skipped (or failed)? My use case is something like this 

 

node {
try {
stage('Will fail') {
sh 'exit 1'
}
stage('Some operations') {
echo 'This stage should run when previous stage is successful'
echo 'Should be skipped or failed when previous stage fails'
}
} 
catch (err) {
echo "Print the error from the first stage $err"
}
finally {
stage('Post build') {
echo 'Always do some cleanup ops'
}
}
}


 

  The problem that I'm facing is that any stage from my pipeline can fail and I want all my downstream stages to be skipped, except the post build one. When a stage fails, it is caught in the `catch` block and so all downstream stages are ignored, ruining the pipeline stage view from the job UI.  Any possible solutions for this?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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-49636) git-plugin GIT_PREVIOUS_SUCCESSFUL_COMMIT incorrectly set

2019-03-14 Thread mihai.dinu.1...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Dinu commented on  JENKINS-49636  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: git-plugin GIT_PREVIOUS_SUCCESSFUL_COMMIT incorrectly set   
 

  
 
 
 
 

 
 I have the exact same problem. Vishal Agrawal, have you found a solution to it?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





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