To configure SCM (Source Code Management) polling, you typically follow these steps, which may vary slightly depending on the specific SCM tool and CI/CD system you are using (like Jenkins, GitLab CI, etc.):
For Jenkins:
-
Open Your Jenkins Job:
- Go to your Jenkins dashboard and select the job you want to configure.
-
Configure the Job:
- Click on "Configure" in the left sidebar.
-
Source Code Management Section:
- In the "Source Code Management" section, select your SCM (e.g., Git).
-
Polling Settings:
- Scroll down to the "Build Triggers" section.
- Check the box for "Poll SCM".
- In the schedule field, enter a cron-like syntax to specify how often Jenkins should poll the SCM. For example,
H/5 * * * *will poll every 5 minutes.
-
Save Configuration:
- Click "Save" to apply the changes.
For GitLab CI:
-
Open Your Project:
- Go to your GitLab project.
-
Settings:
- Navigate to "Settings" > "CI / CD".
-
Expand the "General pipelines" Section:
- Look for the "Pipelines" settings.
-
Configure Polling:
- GitLab CI does not have a direct polling feature like Jenkins, but you can set up webhooks to trigger pipelines on SCM events (like pushes).
-
Save Changes:
- Ensure to save any changes made.
Notes:
- Make sure your SCM credentials are correctly configured in your CI/CD tool.
- Test the polling configuration to ensure it works as expected.
If you have a specific tool in mind, please provide more details for tailored instructions!
