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

Pipeline: notifyBitbucket() requires way too many parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • stashnotifier-plugin
    • None
    • Jenkins version 2.121.1
      Plugin version 1.13

      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!

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

              Created:
              Updated: