Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42614

Pipeline support in EnvInject

    XMLWordPrintable

    Details

    • Epic Name:
      Pipeline support in EnvInject
    • Similar Issues:

      Description

      EnvInject does not support Pipeline now. Though there are many workarounds, it would be useful to address particular integration use-cases

        Attachments

          Issue Links

            Activity

            Hide
            nwillc Nick Christopher added a comment -

            Here's the use case I have today.  We work on sprint branches in our SCM.  As we advance sprint to sprint we change the branch name. To handle this we set a global variable (SPRINT_BRANCH) with the branch name as its value.  Jenkins jobs designed to always focus on the "current sprint"  use that global variable ${SPRINT_BRANCH} as the branch name in the SCM checkout.  Elsewhere in Jenkins, using this variable works with the plugin SCM operations. This pattern allows us to migrate any number of jobs from one branch to the next by simply changing the value of SPRINT_BRANCH.  With Pipeline, a variable can not be used as the branch name.  

            Show
            nwillc Nick Christopher added a comment - Here's the use case I have today.  We work on sprint branches in our SCM.  As we advance sprint to sprint we change the branch name. To handle this we set a global variable (SPRINT_BRANCH) with the branch name as its value.  Jenkins jobs designed to always focus on the "current sprint"  use that global variable ${SPRINT_BRANCH} as the branch name in the SCM checkout.  Elsewhere in Jenkins, using this variable works with the plugin SCM operations. This pattern allows us to migrate any number of jobs from one branch to the next by simply changing the value of SPRINT_BRANCH.  With Pipeline, a variable can not be used as the branch name.  
            Hide
            deepchip Martin d'Anjou added a comment -

            Is this Epic related to JENKINS-28921?

            Show
            deepchip Martin d'Anjou added a comment - Is this Epic related to JENKINS-28921 ?
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Martin d'Anjou No. This EPIC is only about EnvInject, global variables feature is a part of the core

            Show
            oleg_nenashev Oleg Nenashev added a comment - Martin d'Anjou No. This EPIC is only about EnvInject, global variables feature is a part of the core
            Hide
            basil Basil Crow added a comment -

            I'm curious if work is still underway on this epic. I'd like to push my work to make urltrigger work with pipelines upstream, but that work is blocked on this epic.

            Show
            basil Basil Crow added a comment - I'm curious if work is still underway on this epic. I'd like to push my work to make urltrigger work with pipelines upstream, but that work is blocked on this epic.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Basil Crow What exactly are you missing in EnvInject plugin to make URLTrigger working? The most of API has been already adapted, so it should be possible to migrate the plugins

            Show
            oleg_nenashev Oleg Nenashev added a comment - Basil Crow What exactly are you missing in EnvInject plugin to make URLTrigger working? The most of API has been already adapted, so it should be possible to migrate the plugins
            Hide
            basil Basil Crow added a comment -

            Hi Oleg Nenashev, I don't think I am missing anything. Thanks for addressing this! I have now posted two pull requests in order to add pipeline support to the URL Trigger plugin, using envinject-api 1.2 in order to do so.

            Show
            basil Basil Crow added a comment - Hi Oleg Nenashev , I don't think I am missing anything. Thanks for addressing this! I have now posted two pull requests in order to add pipeline support to the URL Trigger plugin, using envinject-api 1.2 in order to do so.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Unfortunately I will not have time to work on EnvInject issues for a while. I decided to unassign all issues so that somebody can take them and finalize.

            Context: The plugin has been waiting for adoption for ~2 years. During all this time I was trying to keep this plugin afloat by reviewing the incoming pull requests, fixing defects and keeping the codebase up to date to simplify the handover. But I have not been using this plugin on my own so that such maintenance was a bit lame. I invite all active users to contribute to the plugin by taking ownership of this plugin and of EnvInject API. I am happy to provide any required knowledge transfers and do some assistance during the first months of maintenance

            Show
            oleg_nenashev Oleg Nenashev added a comment - Unfortunately I will not have time to work on EnvInject issues for a while. I decided to unassign all issues so that somebody can take them and finalize. Context: The plugin has been waiting for adoption for ~2 years. During all this time I was trying to keep this plugin afloat by reviewing the incoming pull requests, fixing defects and keeping the codebase up to date to simplify the handover. But I have not been using this plugin on my own so that such maintenance was a bit lame. I invite all active users to contribute to the plugin by taking ownership of this plugin and of EnvInject API. I am happy to provide any required knowledge transfers and do some assistance during the first months of maintenance

              People

              • Assignee:
                Unassigned
                Reporter:
                oleg_nenashev Oleg Nenashev
              • Votes:
                17 Vote for this issue
                Watchers:
                28 Start watching this issue

                Dates

                • Created:
                  Updated: