Jenkins Python API Query

16 megtekintés
Ugrás az első olvasatlan üzenetre

AB

olvasatlan,
2015. aug. 26. 2:39:192015. 08. 26.
– Jenkins Users
Hello Everyone !

I am fairly new to Jenkins and off late have started playing with Python API where I am able to run builds remotely. 

I want to know if I can create a new job with choice of options such as "branch to build", "artifacts to backup", "Polling" etc so that I can create jobs/builds based on these parameters when and where needed. There is something in configure job page as "This build is parameterized" and then it offer a "String Parameter" where I can define some variable but I am kind of unsure if this approach is right or not.

Please advise and provide links if this has already been done using any other way.

Regards
AB

Ginga, Dick

olvasatlan,
2015. aug. 26. 7:21:562015. 08. 26.
– jenkins...@googlegroups.com

Yes, that is what parameters are for. You then access them as ${PARAM} in  your various build steps. These also become environment variables on your build machine.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b3971829-9bac-49c6-93e3-e703140dc9fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Válasz mindenkinek
Válasz a szerzőnek
Továbbítás
0 új üzenet