Skip to content

Allow Configuring the GitLabPushTrigger via the Job DSL Plugin #79

@djgilcrease

Description

@djgilcrease

I am attempting to use the https://github.com/jenkinsci/job-dsl-plugin to build jobs from our GitLab repo via the GitLab API

I have it building the job correctly but cannot figure out the correct config to pass to enable the GitLabPushTrigger checkbox

job("test") {
    configure { buildTriggers ->
      buildTriggers/GitLabPushTrigger << 'com.dabsquared.gitlabjenkins.GitLabPushTrigger' 
        triggerOnMergeRequest << 'true'
        triggerOnPush << 'true'
        triggerOpenMergeRequestOnPush << 'true'
        ciSkip << 'true'
        setBuildDescription << 'true'
        addNoteOnMergeRequest << 'true'
        addVoteOnMergeRequest << 'true'
        allowAllBranches << 'true'
      }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions