74880/how-trigger-build-on-commit-branch-in-declarative-pipeline
Hi@Madhura,
You can use triggers keyword in your DSL code as shown below.
triggers { // poll repo every 2 minute for changes pollSCM('*/2 * * * *')
It will check every two seconds if anything changes occur and build your Job automatically.
Hi@Alex,
Yes. But the Job will run if you commit anything in your branch. Otherwise, it will just monitor. But according to your requirement, the poll SCM will work.
This would have been more easier using ...READ MORE
To automatically run build on code commit, follow ...READ MORE
You could use the Post Build Task Plugin ...READ MORE
The user needs to open the console ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
You can run the following code, its ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.