Disable build status notification for multi branch pipelines

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Trying to skip build status notification at SCM for multi-branch pipeline jobs which usesĀ  github repo and Bitbucket repos.

      Job1: Bitbucket repo

      Job2: Github Repo.

      InstalledĀ Skip Notifications Trait plugin and added the resolveScm step in postĀ  / always section to disable the build status notification at respective repos.

      checkout resolveScm(source: github(repoOwner: 'Corp', repository: 'cicd', traits: [skipNotifications()]))
      
      Ā checkout resolveScm(source: bitbucket(repoOwner: 'stdca', repository: 'cicd-automation', traits: [skipNotifications()]))
      

      whereas I am getting error for both jobs

      Ā 

      java.lang.NullPointerException{{ at java.util.ArrayList.<init>(ArrayList.java:178)}}{{ at org.jenkinsci.plugins.workflow.multibranch.ResolveScmStep.<init>(ResolveScmStep.java:94)}}Caused: java.lang.reflect.InvocationTargetException
      .....
      Caused: java.lang.IllegalArgumentException: Could not instantiate {source=@bitbucket(repoOwner=stdca,repository=cicd-automation.git,traits=[@skipNotifications()])} for org.jenkinsci.plugins.workflow.multibranch.ResolveScmStep
      

      Ā 

      bitbucket_repo_error.pdf

      For github repo also getting similar error. So Installed the pluginĀ Disable GitHub Multibranch Status Plugin 1.2

      But It disabled build status notifications for all Pull requests from github repo.

      Use Case: Skip Build notifications for Branch builds and Pull request builds which have merge conflicts.

      Ā 

      Ā 

            Assignee:
            Unassigned
            Reporter:
            Harasai Kumar
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: