[JIRA] (JENKINS-37079) Select the Nth allocated workspace from the upstream job
Title: Message Title Alexandru Somai assigned an issue to Alexandru Somai Jenkins / JENKINS-37079 Select the Nth allocated workspace from the upstream job Change By: Alexandru Somai Assignee: Alexandru Somai 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-37079) Select the Nth allocated workspace from the upstream job
Title: Message Title Martin d'Anjou commented on JENKINS-37079 Re: Select the Nth allocated workspace from the upstream job It is better for the user to specify the workspace using a constant _expression_, otherwise the job needs to be reconfigured each time it runs. I think this is what you mean with the 'unique-workspace-id'. In any case this is a low priority item at this time. 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-37079) Select the Nth allocated workspace from the upstream job
Title: Message Title Alexandru Somai updated an issue Jenkins / JENKINS-37079 Select the Nth allocated workspace from the upstream job Change By: Alexandru Somai Currently, The upstream job may allocate multiple workspaces, by calling multiple times the {{exwsAllocate}} step. In this case, when this run is selected in the downstream job, the {{exwsAllocate}} step from the downstream job will choose the first workspace that was allocated in the upstream job.e.g.Upstream Pipeline{code}// upstream job allocates workspaces from two different Disk Poolsdef extWorkspace1 = exwsAllocate 'diskpool1'def extWorkspace2 = exwsAllocate 'diskpool2'// ...{code}Downstream Pipeline{code}def run = selectRun 'upstream-job-name'// the downstream job will choose the first allocated workspace from the upstream jobdef extWorkspace = exwsAllocate selectedRun: run{code}This feature allows the user to select a specific workspace that was allocated in the upstream job. For this, an extra parameter may be needed for the {{exwsAllocate}} step.Each allocated workspace has its own auto-generated unique id , so we can make use of that .e.g. {code}def extWorkspace = exwsAllocate selectedRun: run, workspaceId: 'unique-workspace-id'{code} Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
[JIRA] (JENKINS-37079) Select the Nth allocated workspace from the upstream job
Title: Message Title Alexandru Somai created an issue Jenkins / JENKINS-37079 Select the Nth allocated workspace from the upstream job Issue Type: New Feature Assignee: Unassigned Components: external-workspace-manager-plugin Created: 2016/Jul/30 8:41 PM Priority: Minor Reporter: Alexandru Somai Currently, The upstream job may allocate multiple workspaces, by calling multiple times the exwsAllocate step. In this case, when this run is selected in the downstream job, the exwsAllocate step from the downstream job will choose the first workspace that was allocated in the upstream job. e.g. Upstream Pipeline // upstream job allocates workspaces from two different Disk Pools def extWorkspace1 = exwsAllocate 'diskpool1' def extWorkspace2 = exwsAllocate 'diskpool2' // ... Downstream Pipeline def run = selectRun 'upstream-job-name' // the downstream job will choose the first allocated workspace from the upstream job def extWorkspace = exwsAllocate selectedRun: run This feature allows the user to select a specific workspace that was allocated in the upstream job. For this, an extra parameter may be needed for the exwsAllocate step. Each allocated workspace has its own auto-generated unique id. e.g.