Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ pipeline {
)
}

triggers {
// Poll the SCM every five minutes for changes.
// 'H' is used to spread out the load on Jenkins.
// This requires the Jenkins job to be configured to point to the mcp-server-uyuni git repository.
pollSCM('H/5 * * * *')
}
Comment on lines +21 to +26
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pollSCM only polls the Jenkins job’s configured SCM (or checkout scm in multibranch). This Jenkinsfile explicitly checks out https://github.com/uyuni-project/mcp-server-uyuni.git via the git step, which is not the SCM being polled, so this may not actually trigger on new pushes to mcp-server-uyuni/main and may instead poll whatever repo the job is configured with (often the repo containing this Jenkinsfile). If the intent is “run on pushes to mcp-server-uyuni main”, consider moving/configuring the job as “Pipeline script from SCM” pointing at that repo (so polling/webhooks track the right branch), or switch to a time-based cron(...) trigger and handle change detection explicitly inside the pipeline.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback


environment {
// Sanitize JOB_NAME for Docker compatibility (lowercase, no illegal chars)
DOCKER_TAG = "${env.JOB_NAME.toLowerCase().replaceAll(/[^a-z0-9]/, '-')}"
Expand Down
Loading