[JIRA] (JENKINS-40763) Token expansion fails when workspace is not available

2020-02-11 Thread olivier.schi...@mybestpro.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Olivier Schiavo commented on  JENKINS-40763  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Token expansion fails when workspace is not available   
 

  
 
 
 
 

 
   With "cloud" nodes it is very frequent to have jobs with transient workspace which exists only for the duration of the job. All environment variables are available and token expansion would be very useful. The so-called "solution for solving task names"  is basically a try / catch with failover, it breaks environment variable in the task name once the job is finished. Is there any plan to allow tokenmacro expansion even without a workspace ? In the current state the delivery-pipeline-plugin is broken for task built on a transient node.      
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
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 this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.177469.1483436643000.6559.1581416520439%40Atlassian.JIRA.


[JIRA] (JENKINS-40763) Token expansion fails when workspace is not available

2017-01-13 Thread tommy.ty...@diabol.se (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tommy Tynjä closed an issue as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Released in 0.10.2 https://github.com/Diabol/delivery-pipeline-plugin/releases/tag/delivery-pipeline-plugin-0.10.2  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-40763  
 
 
  Token expansion fails when workspace is not available   
 

  
 
 
 
 

 
Change By: 
 Tommy Tynjä  
 
 
Status: 
 Resolved Closed  
 

  
 
 
 
 

 
 
 

 
 
 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-40763) Token expansion fails when workspace is not available

2017-01-04 Thread tommy.ty...@diabol.se (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tommy Tynjä resolved as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40763  
 
 
  Token expansion fails when workspace is not available   
 

  
 
 
 
 

 
Change By: 
 Tommy Tynjä  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 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-40763) Token expansion fails when workspace is not available

2017-01-04 Thread tommy.ty...@diabol.se (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tommy Tynjä commented on  JENKINS-40763  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Token expansion fails when workspace is not available   
 

  
 
 
 
 

 
 Proposed solution in pull request 226 merged. Will be part of next release.  
 

  
 
 
 
 

 
 
 

 
 
 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-40763) Token expansion fails when workspace is not available

2017-01-03 Thread tommy.ty...@diabol.se (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tommy Tynjä updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40763  
 
 
  Token expansion fails when workspace is not available   
 

  
 
 
 
 

 
Change By: 
 Tommy Tynjä  
 

  
 
 
 
 

 
 If the workspace of a job is not available, task name token expansion fails since the token macro plugin is trying to get the workspace of the node where the build was performed. If the workspace or node is not available, token expansion fails which causes a TokenMacroException. A log message will be emitted and TokenUtils returns an empty string. If your view contains a lot of tasks / pipelines the Jenkins log will be flooded. See https://github.com/Diabol/delivery-pipeline-plugin/blob/master/src/main/java/se/diabol/jenkins/pipeline/token/TokenUtils.java#L51. This causes the configured task names not to be shown in the delivery pipeline view (even if no expandable variables exist), which makes the task names default to the job name.Workaround is to downgrade token-macro plugin to 1.x of 1.9 or later.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

 

[JIRA] (JENKINS-40763) Token expansion fails when workspace is not available

2017-01-03 Thread tommy.ty...@diabol.se (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tommy Tynjä commented on  JENKINS-40763  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Token expansion fails when workspace is not available   
 

  
 
 
 
 

 
 Proposed solution for solving task names defaulting to job names: https://github.com/Diabol/delivery-pipeline-plugin/pull/226  
 

  
 
 
 
 

 
 
 

 
 
 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-40763) Token expansion fails when workspace is not available

2017-01-03 Thread tommy.ty...@diabol.se (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tommy Tynjä commented on  JENKINS-40763  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Token expansion fails when workspace is not available   
 

  
 
 
 
 

 
 The behavior of token-macro plugin has changed in 2.0 so it requires the workspace to be accessible. A workaround for this issue is to downgrade token-macro plugin to 1.10.  
 

  
 
 
 
 

 
 
 

 
 
 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-40763) Token expansion fails when workspace is not available

2017-01-03 Thread tommy.ty...@diabol.se (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tommy Tynjä created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40763  
 
 
  Token expansion fails when workspace is not available   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Tommy Tynjä  
 
 
Components: 
 delivery-pipeline-plugin  
 
 
Created: 
 2017/Jan/03 9:44 AM  
 
 
Environment: 
 Jenkins 2.19  Delivery Pipeline Plugin 0.10.1  Token Macro Plugin 2.0  
 
 
Priority: 
  Critical  
 
 
Reporter: 
 Tommy Tynjä  
 

  
 
 
 
 

 
 If the workspace of a job is not available, task name token expansion fails since the token macro plugin is trying to get the workspace of the node where the build was performed. If the workspace or node is not available, token expansion fails which causes a TokenMacroException. A log message will be emitted and TokenUtils returns an empty string. If your view contains a lot of tasks / pipelines the Jenkins log will be flooded. See https://github.com/Diabol/delivery-pipeline-plugin/blob/master/src/main/java/se/diabol/jenkins/pipeline/token/TokenUtils.java#L51.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment