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