Removed Goss tests
This commit is contained in:
parent
aea09a6081
commit
87e3c0df80
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@ -33,31 +33,16 @@ pipeline {
|
|||||||
|
|
||||||
stage('Build & Push Docker') {
|
stage('Build & Push Docker') {
|
||||||
steps {
|
steps {
|
||||||
container('docker') {
|
container('kaniko') {
|
||||||
sh label: 'Build Docker image', script: 'docker build -t ${DOCKER_IMAGE} .'
|
|
||||||
|
|
||||||
sh label: 'Install bash', script: 'apk add --no-cache bash'
|
|
||||||
|
|
||||||
sh label: 'Install dgoss', script: '''
|
|
||||||
wget https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -O goss
|
|
||||||
wget https://github.com/aelsabbahy/goss/releases/latest/download/dgoss -O dgoss
|
|
||||||
chmod +rx *goss
|
|
||||||
'''
|
|
||||||
|
|
||||||
withEnv(['GOSS_OPTS=-f junit', 'GOSS_PATH=./goss', 'GOSS_SLEEP=3', 'SQLALCHEMY_DATABASE_URI=sqlite:///:memory:']) {
|
|
||||||
sh label: 'run image tests', script: './dgoss run -e SQLALCHEMY_DATABASE_URI=sqlite:///:memory: ${DOCKER_IMAGE} > goss_junit.xml'
|
|
||||||
}
|
|
||||||
sh '''
|
sh '''
|
||||||
echo "${ACR_PASSWORD}" | docker login marcin00.azurecr.io -u $ACR_USERNAME --password-stdin
|
/kaniko/executor \
|
||||||
docker push ${DOCKER_IMAGE}
|
--dockerfile=Dockerfile \
|
||||||
|
--context=. \
|
||||||
|
--destination=marcin00.azurecr.io/user-microservice:kaniko \
|
||||||
|
--verbosity=debug
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
|
||||||
always {
|
|
||||||
junit testResults: '**/*goss_junit.xml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user