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

Gitlab-Plugin via Job DSL not activated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Jenkins: 1.651.1 / 2.0
      Job DSL-Plugin 1.45
      Gitlab-Plugin 1.2.1


      Hi,

      it seems when using the gitlab-plugin via DSL, it is unable to activate the branch-trigger:

           triggers {
                gitlabPush {
                  buildOnMergeRequestEvents(false)
                  buildOnPushEvents(true)
                  enableCiSkip()
                  setBuildDescription()
                  addNoteOnMergeRequest(false)
                  rebuildOpenMergeRequest('never')
                  addVoteOnMergeRequest(false)
                  useCiFeatures(true)
                  acceptMergeRequestOnSuccess(false)
                  allowAllBranches(false)
                  includeBranches(branchName.toString())
                  excludeBranches('')
                }
              }
      

      should result in the checkbox "Build when a change is pushed to GitLab. GitLab CI Service URL: http://jenkins.xxx.local/" should be activated and the plugin working. But it doesnt.

            daspilker Daniel Spilker
            strowi Roman vG
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: