[ci] remove COMPACT_JOB_NAME env var
This is a holdover from jenkins days. It is unused now, so remove it.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79214
Approved by: https://github.com/kit1980, https://github.com/malfet, https://github.com/seemethere
diff --git a/.jenkins/pytorch/build-asan.sh b/.jenkins/pytorch/build-asan.sh
index fb5d177..6542413 100755
--- a/.jenkins/pytorch/build-asan.sh
+++ b/.jenkins/pytorch/build-asan.sh
@@ -4,9 +4,6 @@
# (This is set by default in the Docker images we build, so you don't
# need to set it yourself.
-# shellcheck disable=SC2034
-COMPACT_JOB_NAME="${BUILD_ENVIRONMENT}"
-
# shellcheck source=./common.sh
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
diff --git a/.jenkins/pytorch/build-mobile.sh b/.jenkins/pytorch/build-mobile.sh
index 48cfb4f..572aefd 100755
--- a/.jenkins/pytorch/build-mobile.sh
+++ b/.jenkins/pytorch/build-mobile.sh
@@ -6,9 +6,6 @@
# build & test mobile libtorch without having to setup Android/iOS
# toolchain/simulator.
-# shellcheck disable=SC2034
-COMPACT_JOB_NAME="${BUILD_ENVIRONMENT}"
-
# shellcheck source=./common.sh
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
diff --git a/.jenkins/pytorch/build.sh b/.jenkins/pytorch/build.sh
index c6a7aae..4d7c143 100755
--- a/.jenkins/pytorch/build.sh
+++ b/.jenkins/pytorch/build.sh
@@ -6,9 +6,6 @@
# (This is set by default in the Docker images we build, so you don't
# need to set it yourself.
-# shellcheck disable=SC2034
-COMPACT_JOB_NAME="${BUILD_ENVIRONMENT}"
-
# shellcheck source=./common.sh
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
diff --git a/.jenkins/pytorch/codegen-test.sh b/.jenkins/pytorch/codegen-test.sh
index 6341118..4794dc4 100755
--- a/.jenkins/pytorch/codegen-test.sh
+++ b/.jenkins/pytorch/codegen-test.sh
@@ -12,8 +12,6 @@
set -eu -o pipefail
if [ "$#" -eq 0 ]; then
- # shellcheck disable=SC2034
- COMPACT_JOB_NAME="${BUILD_ENVIRONMENT}"
# shellcheck source=./common.sh
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
OUT="$(dirname "${BASH_SOURCE[0]}")/../../codegen_result"
diff --git a/.jenkins/pytorch/common.sh b/.jenkins/pytorch/common.sh
index cf70565..71bb9ba 100644
--- a/.jenkins/pytorch/common.sh
+++ b/.jenkins/pytorch/common.sh
@@ -125,15 +125,6 @@
fi
fi
-# It's called a COMPACT_JOB_NAME because it's distinct from the
-# Jenkin's provided JOB_NAME, which also includes a prefix folder
-# e.g. pytorch-builds/
-
-if [ -z "$COMPACT_JOB_NAME" ]; then
- echo "Jenkins build scripts must set COMPACT_JOB_NAME"
- exit 1
-fi
-
# TODO: Renable libtorch testing for MacOS, see https://github.com/pytorch/pytorch/issues/62598
# shellcheck disable=SC2034
BUILD_TEST_LIBTORCH=0
diff --git a/.jenkins/pytorch/docker-build-test.sh b/.jenkins/pytorch/docker-build-test.sh
index 480311b..f904d58 100755
--- a/.jenkins/pytorch/docker-build-test.sh
+++ b/.jenkins/pytorch/docker-build-test.sh
@@ -1,8 +1,5 @@
#!/bin/bash
-# shellcheck disable=SC2034
-COMPACT_JOB_NAME="docker-build-test"
-
# shellcheck source=./common.sh
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
diff --git a/.jenkins/pytorch/docs-test.sh b/.jenkins/pytorch/docs-test.sh
index cad53a8..374dae2 100755
--- a/.jenkins/pytorch/docs-test.sh
+++ b/.jenkins/pytorch/docs-test.sh
@@ -1,8 +1,5 @@
#!/bin/bash
-# shellcheck disable=SC2034
-COMPACT_JOB_NAME="${BUILD_ENVIRONMENT}"
-
# shellcheck source=./common.sh
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
diff --git a/.jenkins/pytorch/multigpu-test.sh b/.jenkins/pytorch/multigpu-test.sh
index 0d67339..7a86aa1 100755
--- a/.jenkins/pytorch/multigpu-test.sh
+++ b/.jenkins/pytorch/multigpu-test.sh
@@ -4,9 +4,6 @@
# (This is set by default in the Docker images we build, so you don't
# need to set it yourself.
-# shellcheck disable=SC2034
-COMPACT_JOB_NAME="${BUILD_ENVIRONMENT}"
-
# shellcheck source=./common.sh
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
diff --git a/.jenkins/pytorch/short-perf-test-cpu.sh b/.jenkins/pytorch/short-perf-test-cpu.sh
index ff9ef7a..7cb4608 100755
--- a/.jenkins/pytorch/short-perf-test-cpu.sh
+++ b/.jenkins/pytorch/short-perf-test-cpu.sh
@@ -1,8 +1,5 @@
#!/bin/bash
-# shellcheck disable=SC2034
-COMPACT_JOB_NAME="short-perf-test-cpu"
-
SCRIPT_PARENT_DIR=$(dirname "${BASH_SOURCE[0]}")
# shellcheck source=.jenkins/pytorch/common.sh
diff --git a/.jenkins/pytorch/short-perf-test-gpu.sh b/.jenkins/pytorch/short-perf-test-gpu.sh
index bde8ca5..d7a49cb 100755
--- a/.jenkins/pytorch/short-perf-test-gpu.sh
+++ b/.jenkins/pytorch/short-perf-test-gpu.sh
@@ -1,8 +1,5 @@
#!/bin/bash
-# shellcheck disable=SC2034
-COMPACT_JOB_NAME="short-perf-test-gpu"
-
# shellcheck source=./common.sh
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
diff --git a/.jenkins/pytorch/test.sh b/.jenkins/pytorch/test.sh
index 466cf0f..a8a823d 100755
--- a/.jenkins/pytorch/test.sh
+++ b/.jenkins/pytorch/test.sh
@@ -6,9 +6,6 @@
set -ex
-# shellcheck disable=SC2034
-COMPACT_JOB_NAME="${BUILD_ENVIRONMENT}"
-
TORCH_INSTALL_DIR=$(python -c "import site; print(site.getsitepackages()[0])")/torch
TORCH_BIN_DIR="$TORCH_INSTALL_DIR"/bin
TORCH_LIB_DIR="$TORCH_INSTALL_DIR"/lib
diff --git a/.jenkins/pytorch/win-build.sh b/.jenkins/pytorch/win-build.sh
index c803768..47011e4 100755
--- a/.jenkins/pytorch/win-build.sh
+++ b/.jenkins/pytorch/win-build.sh
@@ -9,9 +9,6 @@
exit 1
fi
-# shellcheck disable=SC2034
-COMPACT_JOB_NAME=pytorch-win-ws2019-cuda10.1-py3-build
-
SCRIPT_PARENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# shellcheck source=./common.sh
source "$SCRIPT_PARENT_DIR/common.sh"
diff --git a/.jenkins/pytorch/win-test.sh b/.jenkins/pytorch/win-test.sh
index 7312ca7..7455ebe 100755
--- a/.jenkins/pytorch/win-test.sh
+++ b/.jenkins/pytorch/win-test.sh
@@ -1,7 +1,5 @@
#!/bin/bash
set -ex
-# shellcheck disable=SC2034
-COMPACT_JOB_NAME=pytorch-win-ws2019-cuda10.1-py3-test
SCRIPT_PARENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# shellcheck source=./common.sh