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

          [JENKINS-46793] Blue Ocean - Unable to change github trigger

          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'

                }

              }

            }

          }

          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'       }     }   } }

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

              Created:
              Updated:
              Resolved: