We achieved full automation in our particular case:
a) created a standard template job with pre-defined promotions;
b) a script which is using remote api (CLI, sshd) copy-job to make a new job; get-job, update-job to manipulate the new job [1] c) warp this script to yet another parameterized job, this can then be comfortably used via UI or remote api. d) combined with Git post-receive hook, we can automatically create a new job once a new branch is pused to the git repo. This approach is good enough for us, and has been working for years. Because all our jobs have the same configuration except some key parameters.
"copy-job" does the trick, it can copy all promotion configurations.

[1] https://github.com/hzh/create-job-cli

Am 15.04.2014 23:45, schrieb Richard Bywater:
Ah thanks - for some reason never thought to check the Jira issues - doh!

Unfortunately, given the dates on those issues, looks like its not a very high priority to get the feature added which makes me wonder how people are using it on big installs. I can't imagine that people have auto job creation going on but having to go into add promotion types job by job?

Richard.


On Wed, Apr 16, 2014 at 1:11 AM, jv <[email protected] <mailto:[email protected]>> wrote:

    Seems related to:

    https://issues.jenkins-ci.org/browse/JENKINS-8963
    https://issues.jenkins-ci.org/browse/JENKINS-11972

    Am 15.04.2014 07:06, schrieb Richard Bywater:
    Hi

    I've just discovered the wonder that is the promoted build plugin
    (don't why I've never really come across it before!)

    However one issue I'm having with introducing it's use is that it
    appears that the only way to configure a promotion is via the Job
    Configuration screen.

    Given we use Jenkins Job Builder to create jobs, is there any CLI
    or API type way of creating promotions a job?

    Thanks
    Richard

-- 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 [email protected]
    <mailto:[email protected]>.
    For more options, visit https://groups.google.com/d/optout.

-- 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 [email protected]
    <mailto:[email protected]>.
    For more options, visit https://groups.google.com/d/optout.


--
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 [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to