Эх сурвалжийг харах

Fix saving the git commit id during continuous benchmarking (#2928)

Michael Hixson 8 жил өмнө
parent
commit
5c1c6443bf

+ 3 - 3
toolset/continuous/tasks/record-git-commit.sh

@@ -3,8 +3,8 @@
 # save the current git commit to results/.commit
 #
 echo "Saving current git commit to results directory..."
-GIT_COMMIT=$(git rev-parse HEAD)
-mkdir -p results
-echo $GIT_COMMIT > results/.commit
+GIT_COMMIT=$(git -C $TFB_REPOPARENT/$TFB_REPONAME rev-parse HEAD)
+mkdir -p $TFB_REPOPARENT/$TFB_REPONAME/results
+echo $GIT_COMMIT > $TFB_REPOPARENT/$TFB_REPONAME/results/commit_id.txt
 echo "Using commit: " $GIT_COMMIT