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

10
Jenkinsfile vendored
View File

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