Re: Not able to promote the builds with dsl code of promoted-builds plugin in groovy

37 views
Skip to first unread message
Message has been deleted

Ferenc Kovacs

unread,
Apr 15, 2016, 5:40:40 AM4/15/16
to jenkins...@googlegroups.com
As far as I know the promoted-builds 2.25 doesn't support the jobdsl integration, you can find a 2.26 snapshot build in the comments at https://github.com/jenkinsci/promoted-builds-plugin/pull/82#issuecomment-201712737 or build yourself until the official 2.26 release is made. 

On Fri, Apr 15, 2016 at 11:05 AM, Praveen A <arikathot...@gmail.com> wrote:
Hello All,

I am using "Promoted builds" plugin to promote automatically from one stage to another using "Jenkins Job DSL" automation of jenkins build configurations.

I have given the following syntax for promoting builds, but it is not working with Job dsl 1.45 plugin (tried in http://job-dsl.herokuapp.com)

freeStyleJob('test-job') {
  properties{
    promotions {
      promotion {
        name('Development')
        conditions {
          manual('testuser')
        }
        actions {
          shell('echo hello;')
        }
      }
    }
  }
}

Environment :
Job DSL version : 1.45
promoted-builds : 2.25
promoted-builds-simple : 1.9

Please help me out in this.

Thanks,
Praveen

--
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/3d4670e2-dbc3-4fc9-857f-5187f61f6ffd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Ferenc Kovács
@Tyr43l - http://tyrael.hu
Reply all
Reply to author
Forward
Message has been deleted
0 new messages