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

Disable build status notification for multi branch pipelines

      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.

       

       

          [JENKINS-67005] Disable build status notification for multi branch pipelines

          Harasai Kumar created issue -
          Harasai Kumar made changes -
          Description Original: 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|https://plugins.jenkins.io/disable-github-multibranch-status]

          Use Case: Notify the build status for Pull requests, Except for PRs which have merge conflicts.

           

           
          New: 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.
          {code:java}
          checkout resolveScm(source: github(repoOwner: 'Corp', repository: 'cicd', traits: [skipNotifications()]))
          {code}
          {code:java}
           checkout resolveScm(source: bitbucket(repoOwner: 'stdca', repository: 'cicd-automation', traits: [skipNotifications()]))
          {code}
          whereas I am getting error for both jobs

           
          {code:java}
          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
          {code}
           

          [^bitbucket_repo_error.pdf]

          For github repo also getting similar error. So Installed the plugin [Disable GitHub Multibranch Status Plugin 1.2|https://plugins.jenkins.io/disable-github-multibranch-status]

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

          Use Case: Bitbucket Repo: Skip Build notifications for Branch builds, Pull request builds except for PRs which have merge conflicts.

           

           
          Harasai Kumar made changes -
          Description Original: 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.
          {code:java}
          checkout resolveScm(source: github(repoOwner: 'Corp', repository: 'cicd', traits: [skipNotifications()]))
          {code}
          {code:java}
           checkout resolveScm(source: bitbucket(repoOwner: 'stdca', repository: 'cicd-automation', traits: [skipNotifications()]))
          {code}
          whereas I am getting error for both jobs

           
          {code:java}
          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
          {code}
           

          [^bitbucket_repo_error.pdf]

          For github repo also getting similar error. So Installed the plugin [Disable GitHub Multibranch Status Plugin 1.2|https://plugins.jenkins.io/disable-github-multibranch-status]

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

          Use Case: Bitbucket Repo: Skip Build notifications for Branch builds, Pull request builds except for PRs which have merge conflicts.

           

           
          New: 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.
          {code:java}
          checkout resolveScm(source: github(repoOwner: 'Corp', repository: 'cicd', traits: [skipNotifications()]))
          {code}
          {code:java}
           checkout resolveScm(source: bitbucket(repoOwner: 'stdca', repository: 'cicd-automation', traits: [skipNotifications()]))
          {code}
          whereas I am getting error for both jobs

           
          {code:java}
          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
          {code}
           

          [^bitbucket_repo_error.pdf]

          For github repo also getting similar error. So Installed the plugin [Disable GitHub Multibranch Status Plugin 1.2|https://plugins.jenkins.io/disable-github-multibranch-status]

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

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

           

           
          Harasai Kumar made changes -
          Description Original: 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.
          {code:java}
          checkout resolveScm(source: github(repoOwner: 'Corp', repository: 'cicd', traits: [skipNotifications()]))
          {code}
          {code:java}
           checkout resolveScm(source: bitbucket(repoOwner: 'stdca', repository: 'cicd-automation', traits: [skipNotifications()]))
          {code}
          whereas I am getting error for both jobs

           
          {code:java}
          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
          {code}
           

          [^bitbucket_repo_error.pdf]

          For github repo also getting similar error. So Installed the plugin [Disable GitHub Multibranch Status Plugin 1.2|https://plugins.jenkins.io/disable-github-multibranch-status]

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

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

           

           
          New: 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.
          {code:java}
          checkout resolveScm(source: github(repoOwner: 'Corp', repository: 'cicd', traits: [skipNotifications()]))
          {code}
          {code:java}
           checkout resolveScm(source: bitbucket(repoOwner: 'stdca', repository: 'cicd-automation', traits: [skipNotifications()]))
          {code}
          whereas I am getting error for both jobs

           
          {code:java}
          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
          {code}
           

          [^bitbucket_repo_error.pdf]

          For github repo also getting similar error. So Installed the plugin [Disable GitHub Multibranch Status Plugin 1.2|https://plugins.jenkins.io/disable-github-multibranch-status]

          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.

           

           
          Valentin Delaye made changes -
          Assignee Original: Alex Dubrouski [ alex_dubrouski ] New: Valentin Delaye [ jonesbusy ]
          Valentin Delaye made changes -
          Assignee Original: Valentin Delaye [ jonesbusy ]

            Unassigned Unassigned
            harasai Harasai Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: