Skip to content
Snippets Groups Projects
Commit 8be79ecf authored by yaskovet's avatar yaskovet
Browse files

Fix hostname detection

parent 412efc32
No related branches found
No related tags found
No related merge requests found
Pipeline #5316 failed
......@@ -3,12 +3,17 @@
workspace=$1
hostname=$(cat hostname)
target=$3
comp_type=$4
branch=$5
with_gpu=$6
if [ -f hostname ]; then
hostname=$(cat hostname)
else
hostname=$(hostname)
fi
if [ x"$branch" == x"" ]; then
echo "Getting branch from git"
branch=$(git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment