Skip to content

Commit

Permalink
Merge pull request #199 from hpidcock/fix-package-juju-source
Browse files Browse the repository at this point in the history
fix: package-juju-source on 4.0 needs to look in core/
  • Loading branch information
hpidcock authored Jul 24, 2024
2 parents 0548279 + e5b903f commit d01e328
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jobs/ci-run/scripts/package-juju-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ fi

PROPS_PATH=${WORKSPACE}/build.properties
# Need to prepare some variables used through out the process
JUJU_VERSION=$(sed -n 's/^const version = "\(.*\)"/\1/p' ${full_path}/version/version.go)
VERSION_FILE="${full_path}/version/version.go"
if [ -f "${full_path}/core/version/version.go" ]; then
VERSION_FILE="${full_path}/core/version/version.go"
fi
JUJU_VERSION=$(sed -n 's/^const version = "\(.*\)"/\1/p' "${VERSION_FILE}")
if [[ -n ${JUJU_BUILD_NUMBER:-} ]]; then
JUJU_VERSION="${JUJU_VERSION}.${JUJU_BUILD_NUMBER}"
fi
Expand Down

0 comments on commit d01e328

Please sign in to comment.