Skip to content

Commit

Permalink
Making name of container dynamic
Browse files Browse the repository at this point in the history
Signed-off-by: amitraj <[email protected]>
  • Loading branch information
quic-amitraj committed Aug 5, 2024
1 parent d9eab81 commit d71657c
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 @@ -18,16 +18,15 @@ pipeline
script
{

sh """
sh '''
. ~/.bashrc
echo 'Pulling...$BRANCH_NAME'
docker run --privileged -dit --name ${BRANCH_NAME} -v ./:/efficient-transformers -v ${huggingface_hub_path}:${docker_huggingface_hub_path} ${docker_latest}:master_latest
docker exec ${BRANCH_NAME} bash -c "
cd /efficient-transformers &&
. /opt/qeff-env/bin/activate &&
pip install --upgrade pip setuptools &&
pip install .[test]"
"""
'''
}
}
}
Expand All @@ -38,15 +37,15 @@ pipeline
//todo(ochougul): Increase when MQ tests are enabled
timeout(time: 420, unit: 'MINUTES')
{
sh """
sh '''
docker exec ${BRANCH_NAME} bash -c "
cd /data &&
. /opt/qeff-env/bin/activate &&
export TOKENIZERS_PARALLELISM=false &&
pytest -W ignore -s -v tests -o junit_logging=all --junitxml=tests/tests_log.xml &&
deactivate &&
exit"
"""
'''

}
}
Expand Down

0 comments on commit d71657c

Please sign in to comment.