Corrected shell commands in jenkins pipeline

This commit is contained in:
Marcin-Ramotowski 2025-05-03 20:05:32 +00:00
parent 8194e3e9fe
commit dcd9a39b46

4
Jenkinsfile vendored
View File

@ -15,7 +15,7 @@ pipeline {
steps {
script {
sh '''
python -m venv env
python3 -m venv env
env/bin/pip install -r requirements.txt pytest
env/bin/pytest . --junit-xml=pytest_junit.xml
'''
@ -52,9 +52,11 @@ pipeline {
stage('Deploy') {
steps {
script {
sh '''
az login --identity
az acr login --name ${ACR_NAME}
docker push ${DOCKER_IMAGE}
'''
}
}
}