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

Blue Ocean - Unable to change github trigger

    Details

    • Similar Issues:

      Description

      Hi!

      First of all, Blue Ocean is really cool, looking forward to using it as it improves

      I have generated a Pipeline with the editor and added it to one of my github repos:
      https://github.com/tigrlily/home-automation/tree/master

      The setup was fine. My current problem is that the trigger to check for updates in the repo is set to only once per day (!?, see screenshot below) and I cannot change that pipeline property in the old Jenkins-view (it is read only), and not in the editor view (I can't find any such option).

      Grateful for any help!

      Best regards,
      Magnus

        Attachments

          Activity

          Hide
          tigrlily Magnus Wahlstrand added a comment - - edited

          I solved it after some deep googling Perhaps it could be included in the Pipeline editor somehow? A bit tricky to find.

          Here is my solution. Update the Jenkinsfile with triggers { pollSCM }

           

          The following triggers every other minute.

           

          pipeline {

            agent any

            triggers { pollSCM('/2 * * * ') }

            stages {

              stage('Commit made') {

                steps {

                  echo 'Commit pushed'

                }

              }

              stage('Test') {

                steps {

                  sleep 1

                  input 'Accept, dude!'

                }

              }

              stage('Stuff completed') {

                steps {

                  echo 'All done'

                }

              }

            }

          }

          Show
          tigrlily Magnus Wahlstrand added a comment - - edited I solved it after some deep googling Perhaps it could be included in the Pipeline editor somehow? A bit tricky to find. Here is my solution. Update the Jenkinsfile with triggers { pollSCM }   The following triggers every other minute.   pipeline {   agent any   triggers { pollSCM(' /2 * * * ') }   stages {     stage('Commit made') {       steps {         echo 'Commit pushed'       }     }     stage('Test') {       steps {         sleep 1         input 'Accept, dude!'       }     }     stage('Stuff completed') {       steps {         echo 'All done'       }     }   } }

            People

            • Assignee:
              Unassigned
              Reporter:
              tigrlily Magnus Wahlstrand
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: