Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41458

job-dsl-plugin missing options for gitlab-plugin, some options do not work

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • jenkins: 2.17
      job-dsl-plugin: 1.48
      gitlab-plugin: 1.4.0
      gitlab: Community Edition 8.16.1 c6c28e6

      The job-dsl-plugin is missing options for the gitlab-plugin

      Current options from https://github.com/jenkinsci/job-dsl-plugin/blob/master/job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/helpers/triggers/TriggerContext/gitlabPush.groovy

      job('example') {
          triggers {
              gitlabPush {
                  buildOnMergeRequestEvents(false)
                  buildOnPushEvents(false)
                  enableCiSkip(false)
                  setBuildDescription(false)
                  addNoteOnMergeRequest(false)
                  rebuildOpenMergeRequest('never')
                  addVoteOnMergeRequest(false)
                  useCiFeatures(false)
                  acceptMergeRequestOnSuccess()
                  includeBranches('include1,include2')
                  excludeBranches('exclude1,exclude2')
              }
          }
      }
      

      There are no options for:

      building on comment
      Comment for triggering a build
      Ignore WIP Merge Requests

      Additionally:

      The "addNoteOnMergeRequest", "addVoteOnMergeRequest", "useCiFeatures" options do not work in my environment. Currently, I have to manually re-enable these features whenever I re-seed my jobs.

            daspilker Daniel Spilker
            tomwganem Tom Ganem
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: