-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(jenkins): add resilience when timeout issues (#739)
- Loading branch information
Showing
4 changed files
with
39 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
# Install Go using the same travis approach | ||
echo "Installing ${GO_VERSION} with gimme." | ||
eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=${GO_VERSION} bash)" | ||
|
||
make install precheck check-modules | ||
|
||
# Run the tests | ||
set +e | ||
export OUT_FILE="build/test-report.out" | ||
mkdir -p build | ||
make test 2>&1 | tee ${OUT_FILE} | ||
status=$? | ||
|
||
go get -v -u github.com/jstemmer/go-junit-report | ||
go-junit-report > "build/junit-apm-agent-go-${GO_VERSION}.xml" < ${OUT_FILE} | ||
|
||
exit ${status} | ||
./scripts/jenkins/build.sh | ||
./scripts/jenkins/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
# Install Go using the same travis approach | ||
echo "Installing ${GO_VERSION} with gimme." | ||
eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=${GO_VERSION} bash)" | ||
|
||
make install precheck check-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
# Install Go using the same travis approach | ||
echo "Installing ${GO_VERSION} with gimme." | ||
eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=${GO_VERSION} bash)" | ||
|
||
# Run the tests | ||
set +e | ||
export OUT_FILE="build/test-report.out" | ||
mkdir -p build | ||
make test 2>&1 | tee ${OUT_FILE} | ||
status=$? | ||
|
||
go get -v -u github.com/jstemmer/go-junit-report | ||
go-junit-report > "build/junit-apm-agent-go-${GO_VERSION}.xml" < ${OUT_FILE} | ||
|
||
exit ${status} |