diff --git a/ci/scripts/archive_results.sh b/ci/scripts/archive_results.sh index 116494429bfe..88bf95b3814e 100755 --- a/ci/scripts/archive_results.sh +++ b/ci/scripts/archive_results.sh @@ -48,7 +48,7 @@ fi SANITIZED_GRADLE_TASK=${GRADLE_TASK##*:} TMPDIR=${DEST_DIR}/tmp GEODE_BUILD=${DEST_DIR}/geode -GEODE_BUILD_VERSION_NUMBER=$(grep "versionNumber *=" ${GEODE_BUILD}/gradle.properties | awk -F "=" '{print $2}' | tr -d ' ') +GEODE_BUILD_VERSION_NUMBER=$(echo "${GRADLE_GLOBAL_ARGS}"|tr ' ' '\n' | grep "versionNumber *=" - ${GEODE_BUILD}/gradle.properties | awk -F "=" '{print $2; exit}' | tr -d ' ') BUILD_TIMESTAMP=$(date +%s) GEODE_PULL_REQUEST_ID_FILE=${BUILDROOT}/geode/.git/resource/version.json diff --git a/ci/scripts/execute_build.sh b/ci/scripts/execute_build.sh index 6f088e3023a1..7990018e8e08 100755 --- a/ci/scripts/execute_build.sh +++ b/ci/scripts/execute_build.sh @@ -41,7 +41,7 @@ BUILD_DATE=$(date +%s) if [ -e "${ROOT_DIR}/geode-build-version" ] ; then GEODE_BUILD_VERSION_FILE=${ROOT_DIR}/geode-build-version/number GEODE_RESULTS_VERSION_FILE=${ROOT_DIR}/results/number - GEODE_BUILD_VERSION_NUMBER=$(grep "versionNumber *=" geode/gradle.properties | awk -F "=" '{print $2}' | tr -d ' ') + GEODE_BUILD_VERSION_NUMBER=$(echo "${GRADLE_GLOBAL_ARGS}"|tr ' ' '\n' | grep "versionNumber *=" - geode/gradle.properties | awk -F "=" '{print $2; exit}' | tr -d ' ') GEODE_BUILD_DIR=/tmp/geode-build GEODE_PULL_REQUEST_ID_FILE=${ROOT_DIR}/geode/.git/id @@ -99,6 +99,7 @@ GRADLE_ARGS="\ ${DEFAULT_GRADLE_TASK_OPTIONS} \ ${GRADLE_SKIP_TASK_OPTIONS} \ ${GRADLE_GLOBAL_ARGS} \ + -PbuildId=${BUILD_ID} \ build install javadoc spotlessCheck rat checkPom resolveDependencies -x test" EXEC_COMMAND="mkdir -p tmp && cd geode && ${SET_JAVA_HOME} && ./gradlew ${GRADLE_ARGS}" diff --git a/ci/scripts/execute_publish.sh b/ci/scripts/execute_publish.sh index 826976380db9..c0e3f7bf9ebf 100755 --- a/ci/scripts/execute_publish.sh +++ b/ci/scripts/execute_publish.sh @@ -37,7 +37,7 @@ EMAIL_BODY="results/body" GEODE_BUILD_VERSION_FILE=${ROOT_DIR}/geode-build-version/number GEODE_RESULTS_VERSION_FILE=${ROOT_DIR}/results/number -GEODE_BUILD_VERSION_NUMBER=$(grep "versionNumber *=" geode/gradle.properties | awk -F "=" '{print $2}' | tr -d ' ') +GEODE_BUILD_VERSION_NUMBER=$(echo "${GRADLE_GLOBAL_ARGS}"|tr ' ' '\n' | grep "versionNumber *=" - geode/gradle.properties | awk -F "=" '{print $2; exit}' | tr -d ' ') GEODE_BUILD_DIR=/tmp/geode-build GEODE_PULL_REQUEST_ID_FILE=${ROOT_DIR}/geode/.git/id