Skip to content

Commit

Permalink
The SHA is in a different variable for different build types.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuetschard committed May 17, 2017
1 parent d94a351 commit 2066dbf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion kokoro/linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ git submodule update --init
# Invoke the build. At this point, only ensure that the tests build, but don't
# execute the tests.
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
echo $(date): Starting build...
./do build --test build --buildnum $KOKORO_BUILD_NUMBER --buildsha $KOKORO_GITHUB_COMMIT
./do build --test build --buildnum $KOKORO_BUILD_NUMBER --buildsha "$BUILD_SHA"
echo $(date): Build completed.
# Build the release packages.
Expand Down
3 changes: 2 additions & 1 deletion kokoro/macos/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ git submodule update --init
# Invoke the build. At this point, only ensure that the tests build, but don't
# execute the tests.
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
echo $(date): Starting build...
./do build --test build --buildnum $KOKORO_BUILD_NUMBER --buildsha $KOKORO_GITHUB_COMMIT
./do build --test build --buildnum $KOKORO_BUILD_NUMBER --buildsha "$BUILD_SHA"
echo $(date): Build completed.
# Build the release packages.
Expand Down
7 changes: 6 additions & 1 deletion kokoro/windows/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ git submodule update --init
REM Invoke the build. At this point, only ensure that the tests build, but don't
REM execute the tests.
echo %DATE% %TIME%
call do.bat build --test build --buildnum %KOKORO_BUILD_NUMBER% --buildsha %KOKORO_GITHUB_COMMIT%
if "%KOKORO_GITHUB_COMMIT%." == "." (
set BUILD_SHA=%KOKORO_GITHUB_PULL_REQUEST_COMMIT%
) else (
set BUILD_SHA=%KOKORO_GITHUB_COMMIT%
)
call do.bat build --test build --buildnum %KOKORO_BUILD_NUMBER% --buildsha "%BUILD_SHA%"
if %ERRORLEVEL% GEQ 1 exit /b %ERRORLEVEL%
echo %DATE% %TIME%
cd %BUILD_ROOT%
Expand Down

0 comments on commit 2066dbf

Please sign in to comment.