Skip to content

Commit

Permalink
changes in jenkins file
Browse files Browse the repository at this point in the history
Signed-off-by: amitraj <[email protected]>
  • Loading branch information
quic-amitraj committed Jul 31, 2024
1 parent 2b7b61a commit 50a7494
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pipeline
steps
{
sh '''
docker run --privileged -dit --name ${CONTAINER_NAME} -v ./:/data -v /home/ubuntu/.cache/huggingface/hub:/root/.cache/huggingface/hub docker-registry.qualcomm.com/qraniumtest/qranium:master_latest
docker run --privileged -dit --user "$(id -u):$(id -g)" --name ${CONTAINER_NAME} -v ./:/data -v /home/ubuntu/.cache/huggingface/hub:/root/.cache/huggingface/hub docker-registry.qualcomm.com/qraniumtest/qranium:master_latest
docker exec ${CONTAINER_NAME} bash -c "
cd /data
. /opt/qeff-env/bin/activate
Expand All @@ -60,6 +60,7 @@ pipeline
cd /data &&
. /opt/qeff-env/bin/activate
export TOKENIZERS_PARALLELISM=false &&
sudo chown -R ubuntu ./*
deactivate &&
exit"
'''
Expand All @@ -82,14 +83,12 @@ pipeline
}
catch (err)
{
echo "Caught: ${err}"
echo "Failed to delete container ${CONTAINER_NAME}: ${err}"
}
}

echo 'Cleaning Workspace'
sh '''
sudo rm -rf ./*
'''
deleteDir()
}
}

Expand Down

0 comments on commit 50a7494

Please sign in to comment.