0 votes
in Jenkins by
What is a trigger? Give an example of how the repository is polled when a new commit is detected.

1 Answer

0 votes
by

Triggers define when and how pipelines should be executed.

When Jenkins is integrated with an SCM, for example, Git, the repository can be polled every time there is a commit.

The Git plugin should be first installed and set up.

After that, you can build a trigger that specifies when a new build should be started. For example, you can create a job that polls the repository and triggers a build when a change is committed.

Related questions

0 votes
asked Nov 16, 2022 in Jenkins by Robin
0 votes
asked Nov 16, 2022 in Jenkins by Robin
...