Git Product home page Git Product logo

Comments (6)

joelee2012 avatar joelee2012 commented on August 17, 2024

yes, the build object has method get_parameters, see api doc

from api4jenkins.

samsun639 avatar samsun639 commented on August 17, 2024

Thanks for the quik reply, I noticed get_parameters method, looks like it will return a list.
If there's a dump method will be great. e.g. build.dump_parameters("params.json")

from api4jenkins.

samsun639 avatar samsun639 commented on August 17, 2024

OR If get_parameters can return dict that can be directly used by job.build will also be great.

from api4jenkins.

joelee2012 avatar joelee2012 commented on August 17, 2024

No, you have to construct parameters by yourself for next build.
can you describe your requirement ?

from api4jenkins.

samsun639 avatar samsun639 commented on August 17, 2024

Senario like:
Reuse paramters of a known build which contains large number of parameters, e.g. 30 parameters. And only change serveral parameters of it for next builds

The current return value of build.get_parameters() are not easy for re-construction for next builds.

from api4jenkins.

samsun639 avatar samsun639 commented on August 17, 2024

I have wrote a function to convert parameters to dict and then save a yaml file.

from api4jenkins.

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.