[JIRA] (JENKINS-49984) Ability to factor out multiple stages into shared libraries

2 views
Skip to first unread message

lucas.baerenfaenger@ginmon.de (JIRA)

unread,
Mar 7, 2018, 7:34:02 AM3/7/18
to jenkinsc...@googlegroups.com
Ginmon Dev Of The Day updated an issue
 
Jenkins / New Feature JENKINS-49984
Ability to factor out multiple stages into shared libraries
Change By: Ginmon Dev Of The Day
I am aware that similar propositions have been made, but no solution has been found for this scenario, which is very common in our organization.

Suppose there are stages that are project-specific, i.e., S1, S2, ..., Sn, and stages that are project-independent (can be factored out into shared lib), i.e., I1, I2, ..., Im. A pipeline for a project should contains both the project-specific stages as well as the project-independent stages, the latter possiby multiple times, e.g.,

S1, S2, ..., Sn, I1, I2, ..., Im, I1', I2', ..., Im'

It would be great to be able to define such a pipeline like this:
{code:java}
pipeline {
  stages {
    stage ("S1") { ... }
    stage ("S2") { ... }
    ...
    stage ("Sn") { ... }
   
sharedSteps sharedStages ()
   
sharedSteps sharedStages ()
  }
}

def
sharedSteps sharedStages () {
  stage ("I1") { ... }
  stage ("I2") { ... }
  ...
  stage ("In") { ... }
}{code}
 
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

lucas.baerenfaenger@ginmon.de (JIRA)

unread,
Mar 7, 2018, 7:34:02 AM3/7/18
to jenkinsc...@googlegroups.com
Ginmon Dev Of The Day updated an issue
Summary:
Ability to factor out multiple stages into shared libraries

andrew.bayer@gmail.com (JIRA)

unread,
Mar 7, 2018, 11:17:02 AM3/7/18
to jenkinsc...@googlegroups.com
Andrew Bayer resolved as Duplicate
Change By: Andrew Bayer
Status: Open Resolved
Resolution: Duplicate

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:25:20 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Duplicate
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages