• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-metadata-plugin
    • None

      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

       

          [JENKINS-50563] support declarative pipeline parameter definition

          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

          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

          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...

           

          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
            imod Dominik Bartholdi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: