From 1fa36c0d4ea679f7dbc4bf11094bd421b2d42589 Mon Sep 17 00:00:00 2001 From: tonsV2 Date: Sat, 18 Nov 2023 00:45:18 +0700 Subject: [PATCH] ci: document how to test the stable pipeline (#15709) * ci: document how to test the stable pipeline * ci: remove script * Update jenkinsfiles/stable Co-authored-by: radnov * ci: split lines --------- Co-authored-by: radnov --- jenkinsfiles/stable | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/jenkinsfiles/stable b/jenkinsfiles/stable index b5ca7d8c9cc5..c05bf145a719 100644 --- a/jenkinsfiles/stable +++ b/jenkinsfiles/stable @@ -1,5 +1,22 @@ #!/usr/bin/env groovy +/* +# This pipeline can be tested by executing the following steps +* Create a branch with a non-existing version name such as "patch/4.1.2.3" +* Update all the pom files with the same version (4.1.2.3) +* Commit the pom files +* Tag the commit from above with "4.1.2.3" +* Push +* Update the "Filter by name (with regular expression)" field under "Branch Sources" (here)[https://ci.dhis2.org/view/dhis2-core/job/dhis2-core-stable/configure] to include your version. + An example of such regular expression could be: ^2[.]\d+[.]\d+$|^2[.]\d+[.]\d+-(?i)embargoed$|^patch\/2[.]\d+[.]\d+$|^patch\/(2|4)[.]\d+[.]\d+[.]\d+$|^2[.]\d+[.]\d+[.]\d+$ +* Schedule a build for your branch here... https://ci.dhis2.org/view/dhis2-core/job/dhis2-core-stable/ + +# Clean up +* Restore the regular expression previously updated to include your branch +* Delete the war file from S3: aws s3 rm s3://releases.dhis2.org/... +* Delete the docker image from the repository +*/ + @Library('pipeline-library') _ pipeline {