Giter VIP home page Giter VIP logo

Comments (9)

gabemontero avatar gabemontero commented on July 21, 2024 1

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 21, 2024

hi @livelace - I need to clarify what you mean by "support variables"

Are you saying you would like to define job build parameters / env vars and then reference them as the pod name, container name, arguments values you supply to the job definition?

i.e. for the pod name, you seed the job with ${MY_POD_NAME}, and then you define that as a build param for the job?

If so, while we are generally shutting down new development with this plugin in favor of https://github.com/openshift/jenkins-client-plugin (where you should be able to use $env.MY_POD_NAME), this change is pretty small / trivial (and one could argue should have been done originally), and I might be able to squeeze it in, pending agreement from @bparees

from jenkins-plugin.

bparees avatar bparees commented on July 21, 2024

@gabemontero if it's trivial to add support for this to all the arg fields for the plugin steps (not just this step), it's probably worth doing. if it's a one off for this step, it's just a slippery slope...

from jenkins-plugin.

livelace avatar livelace commented on July 21, 2024

Are you saying you would like to define job build parameters / env vars and then reference them as the pod name, container name, arguments values you supply to the job definition?

i.e. for the pod name, you seed the job with ${MY_POD_NAME}, and then you define that as a build param for the job?

Yes, absolutely.

If so, while we are generally shutting down new development with this plugin in favor of https://github.com/openshift/jenkins-client-plugin (where you should be able to use $env.MY_POD_NAME), this change is pretty small / trivial (and one could argue should have been done originally), and I might be able to squeeze it in, pending agreement from @bparees

Yes, it's a trivial change and we need it :) Yes, we use DSL plugin, thanks for that, but DSL/pipeline/groovy are not so easy for newbies and this plugin allows very quickly assemble a simple (relative complex) task/deployment/service. For instance - we use DSL plugin at the top of complex workflows, those contains numerous dependencies of CI , but at the bottom layers lay more simple tasks, which are created by this plugin.

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 21, 2024

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 21, 2024

from jenkins-plugin.

livelace avatar livelace commented on July 21, 2024

@gabemontero @bparees

Thanks, guys :)

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 21, 2024

@livelace if you can try out the pre-release version of this change at https://ci.openshift.redhat.com/jenkins/view/All/job/openshift-pipeline-plugin/36/s3/download/openshift-pipeline.hpi

from jenkins-plugin.

livelace avatar livelace commented on July 21, 2024

@gabemontero It seems that all parameters work fine. I have checked all of them :) Thanks for your fast response/improvement :)

PS. Are there any restrictions of number of arguments ?

from jenkins-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.