Skip to content

Commit

Permalink
fix setting build options (which were erased during tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Apr 2, 2021
1 parent 3b6dbea commit 699faa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/jenkins/checkout-repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function checkoutRepository() {
rm -rf "$SRC_DIR_NAME"
fi

if [ -n "$REPO_COMMIT" ]; then
if [ -n "$REPO_COMMIT" ] && [ -n "$COMMIT_BUILD_OPTION_NAME" ]; then
setBuildOption "$COMMIT_BUILD_OPTION_NAME" "$REPO_COMMIT"
fi

Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/manageBuildOptions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function updateBuildOptions() {

# Set a build option in the build option file so it can be retrieved at different places
function setBuildOption() {
$GSED -e "s/${1//\//\\/}=.*/${1//\//\\/}=${2//\//\\/}/" --in-place "$BUILD_OPTIONS_FILE"
$GSED -e "s/^ *${1//\//\\/}=.*/${1//\//\\/}=${2//\//\\/}/" --in-place "$BUILD_OPTIONS_FILE"
}

function dumpBuildOptions() {
Expand Down

0 comments on commit 699faa2

Please sign in to comment.