It would be nice if we could automatically trigger multi-branch projects with the SQS plugin just like we can trigger old-style jobs. (We run our jenkins server in our intranet so we can't use the webhook).

      (I hope I selected the correct components, apologies if I made a mistake)

          [JENKINS-35185] Trigger github multi-branch build via SQS

          Jesse Glick added a comment -

          No clue what the SQS plugin is.

          Jesse Glick added a comment - No clue what the SQS plugin is.

          Stephen Connolly added a comment - https://wiki.jenkins-ci.org/display/JENKINS/GitHub+SQS+Plugin

          I suspect that this might actually be working if you have the SQS notification set up, as in when events are received by SQS they should get forwarded to the GitHub Webhook listeners of which the GitHub Branch Source is a subscriber and hence the trigger should be picked up automagically. The only issue is that users do not realize that you don't have to configure a separate trigger

          Stephen Connolly added a comment - I suspect that this might actually be working if you have the SQS notification set up, as in when events are received by SQS they should get forwarded to the GitHub Webhook listeners of which the GitHub Branch Source is a subscriber and hence the trigger should be picked up automagically. The only issue is that users do not realize that you don't have to configure a separate trigger

          Idikoro Eradiri added a comment - - edited

          jglick stephenconnolly I can confirm that this branch of the plugin https://github.com/jenkinsci/github-sqs-plugin/pull/9  does indeed kick off Multibranch pipleline builds from messages received on SQS!

           

          I was able to get jenkins to read from SQS and trigger builds on a multi-branch pipeline that was created with the latest version of the BlueOcean UI.

          The Jenkins instances were both behind our corporate firewall. One was deployed on AWS and the other was on my local machine.

          Idikoro Eradiri added a comment - - edited jglick stephenconnolly I can confirm that this branch of the plugin https://github.com/jenkinsci/github-sqs-plugin/pull/9   does indeed kick off Multibranch pipleline builds from messages received on SQS!   I was able to get jenkins to read from SQS and trigger builds on a multi-branch pipeline that was created with the latest version of the BlueOcean UI. The Jenkins instances were both behind our corporate firewall. One was deployed on AWS and the other was on my local machine.

          the flow looks like this:

          github -> SNS -> SQS -> jenkins

          and this is the Jenkinsfile I used in my repo for the multibranch pipeline

          pipeline {
              agent any
              triggers {
                  githubPush()
              }
          
              stages {
                 stage(do something') {
                    steps {
                       echo 'hello'
                    }
                  }
              }
          }
          

           

          Idikoro Eradiri added a comment - the flow looks like this: github -> SNS -> SQS -> jenkins and this is the Jenkinsfile I used in my repo for the multibranch pipeline pipeline { agent any triggers { githubPush() } stages { stage( do something') { steps { echo 'hello' } } } }  

          github -> SNS -> SQS -> jenkins

          See JENKINS-46674

          Rickard von Essen added a comment - github -> SNS -> SQS -> jenkins See JENKINS-46674

            Unassigned Unassigned
            gijsk Gijs Kunze
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: