Skip to content

Commit

Permalink
Add support for BUILD_NUMBER (temporarily)
Browse files Browse the repository at this point in the history
Some old scripts still use BUILD_NUMBER instead of the
newer BUILD_ID. The later is the preferred one in new
scripts (no matter both still work).

Once moodlehq/moodle-local_ci#303 is fixed
we'll revert this change, when we have everything working with BUILD_ID.
  • Loading branch information
stronk7 committed Jun 7, 2024
1 parent 289f9d1 commit 8805c55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runner/main/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ fi
# BUILD_ID, if not defined use the current PID.
BUILD_ID="${BUILD_ID:-$$}"

# Always make BUILD_NUMBER available, some old scripts use it.
# TODO: Remove this once https://github.com/moodlehq/moodle-local_ci/issues/303 is fixed.
BUILD_NUMBER="${BUILD_ID}"

# Base directory to be shared with some containers that will read/write information there (timing, environment, logs... etc.).
SHAREDDIR="${WORKSPACE}"/"${BUILD_ID}"

Expand Down

0 comments on commit 8805c55

Please sign in to comment.