Corrected shell commands in jenkins pipeline
This commit is contained in:
parent
8194e3e9fe
commit
dcd9a39b46
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -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}
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user