-
Bug
-
Resolution: Fixed
-
Major
-
Running the Blue Ocean Jenkins docker: jenkinsci/blueocean:latest
Jenkins ver. 2.60.3
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
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'
}
}
}
}