From 950271ef42eee33a9f7ca97f9836203ef148de15 Mon Sep 17 00:00:00 2001 From: Aashish Radhakrishnan Date: Mon, 6 May 2024 16:51:07 -0400 Subject: [PATCH] Added comments and changed to cron --- jobs/bump-jenkins-plugins.Jenkinsfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/jobs/bump-jenkins-plugins.Jenkinsfile b/jobs/bump-jenkins-plugins.Jenkinsfile index 62edd82fb..16368a626 100644 --- a/jobs/bump-jenkins-plugins.Jenkinsfile +++ b/jobs/bump-jenkins-plugins.Jenkinsfile @@ -1,3 +1,17 @@ +/* +bump-jenkins-job automates the process of checking for updates to Jenkins plugins, updating the plugin versions in a configuration file, +pushing the changes to a Git repository, and opening a pull request for review. + +Plugin Update Process: + +This job reads a list of plugins from the file plugins.txt in the repository. +It iterates over each plugin, checks for updates and if a newer version is available, it updates the version in the file. +For each plugin, it fetches the latest version by querying a URL based on the Jenkins plugin repository structure. +If an update is found, it modifies the plugins.txt file to reflect the new version. +The updates in the plugins.txt file are committed and pushed to the pr_branch. +It also opens a pull request with the updated plugin versions. +*/ + repo = "coreos/fedora-coreos-pipeline" fork_repo = "coreosbot-releng/fedora-coreos-pipeline" botCreds = "github-coreosbot-releng-token-username-password" @@ -29,7 +43,7 @@ node { properties([ pipelineTriggers([ /* Schedule to check once a month */ - pollSCM('H H 1 * *') + cron('H H 1 * *') ]), buildDiscarder(logRotator( numToKeepStr: '100',