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

Pipeline: notifyBitbucket() requires way too many parameters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: stashnotifier-plugin
    • Labels:
      None
    • Environment:
      Jenkins version 2.121.1
      Plugin version 1.13
    • Similar Issues:

      Description

      When you just call notifyBitbucket() in a declarative pipeline you get:

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      WorkflowScript: 35: Missing required parameter: "stashServerBaseUrl" @ line 35, column 17.
                         notifyBitbucket()
                         ^
      
      WorkflowScript: 35: Missing required parameter: "credentialsId" @ line 35, column 17.
                         notifyBitbucket()
                         ^
      
      WorkflowScript: 35: Missing required parameter: "ignoreUnverifiedSSLPeer" @ line 35, column 17.
                         notifyBitbucket()
                         ^
      
      WorkflowScript: 35: Missing required parameter: "commitSha1" @ line 35, column 17.
                         notifyBitbucket()
                         ^
      
      WorkflowScript: 35: Missing required parameter: "includeBuildNumberInKey" @ line 35, column 17.
                         notifyBitbucket()
                         ^
      
      WorkflowScript: 35: Missing required parameter: "projectKey" @ line 35, column 17.
                         notifyBitbucket()
                         ^
      
      WorkflowScript: 35: Missing required parameter: "prependParentProjectKey" @ line 35, column 17.
                         notifyBitbucket()
                         ^
      
      WorkflowScript: 35: Missing required parameter: "disableInprogressNotification" @ line 35, column 17.
                         notifyBitbucket()
                         ^
      
      WorkflowScript: 35: Missing required parameter: "considerUnstableAsSuccess" @ line 35, column 17.
                         notifyBitbucket()
                         ^
      

      On the other hand, step([$class: 'StashNotifier']) is working perfectly fine!

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              famod Falko Modler
              Votes:
              8 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: