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

support declarative pipeline parameter definition

    XMLWordPrintable

Details

    Description

      It would be very helpful to be able to define a maven-metadata parameter in declarative pipeline as described here:

      https://jenkins.io/doc/book/pipeline/syntax/#parameters

       

      I know I can do something similar with 'input', but it is not quite the same, as one has to wait for the pipeline to be running and the parameter is not visible in the job configuration. Also I did not find any docu except this commit: https://github.com/jenkinsci/maven-metadata-plugin/commit/a74b2d65824d13f76e175c406983f104390854a0

       

      Attachments

        Activity

          imod Dominik Bartholdi created issue -
          imod Dominik Bartholdi made changes -
          Field Original Value New Value
          Assignee Gesh Markov [ gesh ] Marc Rohlfs [ marcrohlfs ]
          imod Dominik Bartholdi made changes -
          Description It would be very helpful to be able to define a maven-metadata parameter in declarative pipeline as described here:

          [https://jenkins.io/doc/book/pipeline/syntax/#parameters]

           

          I know I can do something similar with 'input', but it is not quite the same, as one has to wait for the pipeline to be running. Also I did not find any docu except this commit: [https://github.com/jenkinsci/maven-metadata-plugin/commit/a74b2d65824d13f76e175c406983f104390854a0]

           
          It would be very helpful to be able to define a maven-metadata parameter in declarative pipeline as described here:

          [https://jenkins.io/doc/book/pipeline/syntax/#parameters]

           

          I know I can do something similar with 'input', but it is not quite the same, as one has to wait for the pipeline to be running and the parameter is not visible in the job configuration. Also I did not find any docu except this commit: [https://github.com/jenkinsci/maven-metadata-plugin/commit/a74b2d65824d13f76e175c406983f104390854a0]

           
          marcrohlfs Marc Rohlfs added a comment -

          Hi imod,

          I currently do not have very much time to care about Jenkins and I actually didn't work much with the pipeline so far. The pipeline support was added by bbonnet (see JENKINS-38619). About documentation on the pipeline support, please refer to him. I just merged his PR and cleaned up code a little (including upgrade to Jenkins 2).

          About support of declarative pipeline parameter definition: I currently can only ask You to implement it yourself and file a pull request. I'd try to merge (and release) it ASPA - depending on my current workload in "real-life" projects.

          As gesh gave up maintainership for this plugin and I only have spare time to care about this plugin, I'd be glad about additional maintainers. So, if You like, be my guest . Was the same with me: I needed some features and as Gesh didn't have time (nor environment) to merge my PRs, he suggested/offered me to be added as maintainer/owner.

          Maybe not the answer You'd like to read, I'm sorry. But I currently cannot offer much more here...

          Kind regards

          Marc

          marcrohlfs Marc Rohlfs added a comment - Hi  imod , I currently do not have very much time to care about Jenkins and I actually didn't work much with the pipeline so far. The pipeline support was added by bbonnet (see JENKINS-38619 ). About documentation on the pipeline support, please refer to him. I just merged his PR and cleaned up code a little (including upgrade to Jenkins 2). About support of declarative pipeline parameter definition: I currently can only ask You to implement it yourself and file a pull request. I'd try to merge (and release) it ASPA - depending on my current workload in "real-life" projects. As gesh gave up maintainership for this plugin and I only have spare time to care about this plugin, I'd be glad about additional maintainers. So, if You like, be my guest . Was the same with me: I needed some features and as Gesh didn't have time (nor environment) to merge my PRs, he suggested/offered me to be added as maintainer/owner. Maybe not the answer You'd like to read, I'm sorry. But I currently cannot offer much more here... Kind regards Marc

          Hi marcrohlfs,

          I already have a couple of plugins I'm taking care of - so I don't think I can take more than I already have - but if I find time, I might look into this feature request...

          /Domi

          imod Dominik Bartholdi added a comment - Hi marcrohlfs , I already have a couple of plugins I'm taking care of - so I don't think I can take more than I already have - but if I find time, I might look into this feature request... /Domi

          I've raised PR which should make current implementation pipeline declarative style compatible. 

          Build is failing, will try to make it works...

           

          knazarov Kirill Nazarov added a comment - I've raised PR  which should make current implementation pipeline declarative style compatible.  Build is failing, will try to make it works...  
          knazarov Kirill Nazarov made changes -
          Assignee Marc Rohlfs [ marcrohlfs ] Kirill Nazarov [ JIRAUSER135919 ]
          knazarov Kirill Nazarov made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          knazarov Kirill Nazarov made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          knazarov Kirill Nazarov made changes -
          Status Open [ 1 ] In Progress [ 3 ]

          People

            knazarov Kirill Nazarov
            imod Dominik Bartholdi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: