Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build with parameters #15

Open
smarmit opened this issue Dec 31, 2012 · 8 comments
Open

build with parameters #15

smarmit opened this issue Dec 31, 2012 · 8 comments

Comments

@smarmit
Copy link

smarmit commented Dec 31, 2012

Thank you for the cool tool. One feature I'd love is the ability to pass parameters to a job with the "build" method. I end up using other tools because this feature is missing.

Thanks

@txels
Copy link
Owner

txels commented Dec 31, 2012

Thanks. Can you provide some specific example of what you are trying to do and how other tools help you?
Maybe you are referring to a feature of Jenkins I am not familiar with.

@smarmit
Copy link
Author

smarmit commented Dec 31, 2012

Hi. With python-jenkins and jenkinsapi packages, I can call a job a provide parameters. A specific example:

  • I have a jenkins job which takes one parameter named "branch" to be used as the source control branch.
  • With python-jenkins for example I would do:

j = jenkins.Jenkins('http://your_url_here', 'username', 'password')
j.build_job('some_job', {'branch': 'my_source_branch'})

With autojenkins the "build" function does not take parameters so I would not be able to pass a parameter name/value.

Thank you!

@simschla
Copy link

simschla commented Feb 2, 2013

+1
I'd love to see that too!

@NTARelix
Copy link

NTARelix commented Jul 3, 2013

I'm impressed with how easy it is to use this, but the only thing keeping this from being useful to me is the lacking support for parameters. All of the jobs I would like to use this for have required parameters.
I would love to see this feature so I could automate many of my deploys, saving me a ton of time.

@mroll
Copy link

mroll commented Jun 18, 2014

I just extended the build action to accept a hash of parameters for parameterized builds. Not sure if anyone is still paying attention to this project, but it seemed like it would be useful for some stuff I'm doing at work, I just needed optional parameters

@mroll
Copy link

mroll commented Jun 18, 2014

Check out my fork of the project to see if you want to merge it

@txels
Copy link
Owner

txels commented Jun 18, 2014

@mroll feel free to send a PR

@mroll
Copy link

mroll commented Jun 19, 2014

sent it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants