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

PipelineJob trigger deprecation for gitlabpush error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • job-dsl-plugin
    • None
    • Jenkins (2.228) job-dsl-plugin-1.77

      Migrating from

      triggers {
      gitlabPush

      { buildOnMergeRequestEvents(false) buildOnPushEvents(true) enableCiSkip(false) setBuildDescription(true) rebuildOpenMergeRequest('never') commentTrigger('Jenkins please retry a build') skipWorkInProgressMergeRequest(true) }

      }

      to:

      properties {       

      pipelineTriggers {           

      triggers {           

      gitlabPush

      {                    buildOnMergeRequestEvents(false)                    buildOnPushEvents(true)                    enableCiSkip(false)                    setBuildDescription(true)                    rebuildOpenMergeRequest('never')                    commentTrigger('Jenkins please retry a build')                    skipWorkInProgressMergeRequest(true)                }

                 

      }        }    }

       

      Fails with

      ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.GitLabPushTrigger() is applicable for argument types: (DSLLegacyStaticPipelines$_run_closure7$_closure55$_closure61$_closure62$_closure63) values: [DSLLegacyStaticPipelines$_run_closure7$_closure55$_closure61$_closure62$_closure63@46a5bdac]

       

      Please advise. Thanks.

       

            jamietanna Jamie Tanna
            whunzic William Hunzicker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: