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 24, 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 (typically the repo that contains the Jenkinsfile), not the repository checked out later via the git ... branch: params.MCP_SERVER_BRANCH step. As written, this is unlikely to trigger builds on new pushes to mcp-server-uyuni main (and may instead trigger on commits to this susemanager-ci repo, or do nothing if the job has no SCM configured), so it doesn’t match the PR goal. Consider instead triggering from a job/multibranch pipeline that is actually attached to uyuni-project/mcp-server-uyuni (e.g., GitHub webhook / multibranch) and/or using an upstream trigger that passes the commit/branch to this job.

Copilot uses AI. Check for mistakes.

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