How to configure SCM polling?

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:

  1. Open Your Jenkins Job:

    • Go to your Jenkins dashboard and select the job you want to configure.
  2. Configure the Job:

    • Click on "Configure" in the left sidebar.
  3. Source Code Management Section:

    • In the "Source Code Management" section, select your SCM (e.g., Git).
  4. 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.
  5. Save Configuration:

    • Click "Save" to apply the changes.

For GitLab CI:

  1. Open Your Project:

    • Go to your GitLab project.
  2. Settings:

    • Navigate to "Settings" > "CI / CD".
  3. Expand the "General pipelines" Section:

    • Look for the "Pipelines" settings.
  4. 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).
  5. 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!

0 Comments

no data
Be the first to share your comment!