[JIRA] (JENKINS-40402) Define Build triggers

2 views
Skip to first unread message

n27@3ds.com (JIRA)

unread,
Dec 13, 2016, 5:01:01 AM12/13/16
to jenkinsc...@googlegroups.com
aurelien leboulanger created an issue
 
Jenkins / Improvement JENKINS-40402
Define Build triggers
Issue Type: Improvement Improvement
Assignee: Andrew Bayer
Attachments: Screen Shot 2016-12-13 at 10.56.44 AM.png
Components: pipeline-model-definition-plugin
Created: 2016/Dec/13 10:00 AM
Environment: Jenkins 2.36
Pipeline-model-definition plugin 0.6
Priority: Major Major
Reporter: aurelien leboulanger

Hello,

is there a way to define build triggers configuration in the Jenkinsfile with the pipeline model definition syntax ?

Because the plugin reset my job configuration (Build triggers section) when the Jenkinsfile is updated.

For exemple, i set an option on the build triggers section and it will disappear in the next Jenkinsfile update (see screenshot).

Thanks

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Dec 16, 2016, 5:42:03 PM12/16/16
to jenkinsc...@googlegroups.com
Andrew Bayer commented on Improvement JENKINS-40402
 
Re: Define Build triggers

There is - see https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Trigger-runs. But it only works if the trigger class has a @Symbol on it, and the GitLab trigger doesn't seem to have one - https://github.com/jenkinsci/gitlab-plugin/blob/master/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java#L296 - should be easy enough to add, though.

n27@3ds.com (JIRA)

unread,
Dec 19, 2016, 2:09:01 AM12/19/16
to jenkinsc...@googlegroups.com
aurelien leboulanger commented on Improvement JENKINS-40402
 
Re: Define Build triggers

Currently in the jenkins job the gilab plugin is enabled by a checkbox; if the gitlab plugin add the @Symbol annotation, what will be the pipeline syntax for the trigger ?

Thanks

andrew.bayer@gmail.com (JIRA)

unread,
Dec 19, 2016, 10:42:01 AM12/19/16
to jenkinsc...@googlegroups.com
Andrew Bayer commented on Improvement JENKINS-40402
 
Re: Define Build triggers

If it's just a checkbox, the syntax would be something like gitlabHook(). If more args are needed, it'd end up being something like gitlabHook(someParam: "foo", someOtherParam: "bar")

andrew.bayer@gmail.com (JIRA)

unread,
Jan 7, 2017, 7:16:01 PM1/7/17
to jenkinsc...@googlegroups.com
Andrew Bayer resolved as Not A Defect
Change By: Andrew Bayer
Status: Open Resolved
Resolution: Not A Defect

n27@3ds.com (JIRA)

unread,
Jan 9, 2017, 4:44:02 AM1/9/17
to jenkinsc...@googlegroups.com
aurelien leboulanger commented on Improvement JENKINS-40402
 
Re: Define Build triggers

Andrew Bayer If i want to add the @Symbol annotation in the code of the plugin, what is the maven dependency to declare to import this java annotation please ?

n27@3ds.com (JIRA)

unread,
Jan 9, 2017, 5:01:01 AM1/9/17
to jenkinsc...@googlegroups.com
 
Re: Define Build triggers

Finally found in:

    <dependency>
      <groupId>org.jenkins-ci</groupId>
      <artifactId>symbol-annotation</artifactId>
      <version>1.5</version>
    </dependency>

Maybe add this kind of information in the wiki ?

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:08 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Not A Defect
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages