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

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 Aug 23, 2021 in DevOps by sharadyadav1986
0 votes
asked May 1, 2021 in Jenkins by rajeshsharma
0 votes
asked Oct 21, 2019 in Jenkins by rajeshsharma