Implement fully automated Jenkins HW8 setup with Ansible, JCasC and JJB
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
pipeline {
|
||||
agent { label 'jjb' }
|
||||
options {
|
||||
timestamps()
|
||||
ansiColor('xterm')
|
||||
}
|
||||
stages {
|
||||
stage('Check Docker & Registry') {
|
||||
steps {
|
||||
sh '''
|
||||
set -eux
|
||||
docker version
|
||||
curl -fsS http://registry:5000/v2/_catalog
|
||||
docker pull localhost:5005/otus/test-selenium:1.0.0
|
||||
docker pull localhost:5005/otus/test-api:1.0.0
|
||||
docker pull localhost:5005/otus/test-mobile:1.0.0
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Check Sources') {
|
||||
steps {
|
||||
sh '''
|
||||
set -eux
|
||||
test -f /workspace/otus-autotests/homework_4/pom.xml
|
||||
test -f /workspace/otus-autotests/hw7/pom.xml
|
||||
test -f /workspace/otus-autotests/hw8/config/jobs/global.yaml
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user