Skip to content

Commit

Permalink
ci: document how to test the stable pipeline (#15709)
Browse files Browse the repository at this point in the history
* ci: document how to test the stable pipeline

* ci: remove script

* Update jenkinsfiles/stable

Co-authored-by: radnov <[email protected]>

* ci: split lines

---------

Co-authored-by: radnov <[email protected]>
  • Loading branch information
tonsV2 and radnov authored Nov 17, 2023
1 parent 681ac83 commit 1fa36c0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions jenkinsfiles/stable
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 1fa36c0

Please sign in to comment.