Skip to content

Commit

Permalink
setting branch_name as env variable (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tulsishah authored and ashmeenkaur committed Jan 9, 2024
1 parent 1727ed2 commit 54a0ea1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ readonly RUN_E2E_TESTS_ON_INSTALLED_PACKAGE=true
cd "${KOKORO_ARTIFACTS_DIR}/github/gcsfuse"
echo "Building and installing gcsfuse..."
# Get the latest commitId of yesterday in the log file. Build gcsfuse and run
commitId=$(git log --before='yesterday 23:59:59' --max-count=1 --pretty=%H)
commitId=$(git log $BRANCH_NAME --before='yesterday 23:59:59' --max-count=1 --pretty=%H)
./perfmetrics/scripts/build_and_install_gcsfuse.sh $commitId

echo "Running e2e tests on installed package...."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

env_vars {
key: "BRANCH_NAME"
value: "master"
}

action {
define_artifacts {
regex: "gcsfuse-failed-integration-test-logs-*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

env_vars {
key: "BRANCH_NAME"
value: "read_cache_release"
}

action {
define_artifacts {
regex: "gcsfuse-failed-integration-test-logs-*"
Expand Down

0 comments on commit 54a0ea1

Please sign in to comment.