46 lines
1.3 KiB
Groovy
46 lines
1.3 KiB
Groovy
pipeline {
|
|
agent { label 'jjb' }
|
|
options {
|
|
timestamps()
|
|
ansiColor('xterm')
|
|
}
|
|
stages {
|
|
stage('Prepare Metadata') {
|
|
steps {
|
|
script {
|
|
wrap([$class: 'BuildUser']) {
|
|
env.RUN_TRIGGER_USER = env.BUILD_USER_ID ?: env.BUILD_USER ?: 'system'
|
|
env.RUN_TRIGGER_NAME = env.BUILD_USER ?: env.BUILD_USER_ID ?: 'system'
|
|
}
|
|
currentBuild.displayName = "#${env.BUILD_NUMBER} infra"
|
|
currentBuild.description = "by=${env.RUN_TRIGGER_NAME}"
|
|
}
|
|
}
|
|
}
|
|
stage('Check Docker & Registry') {
|
|
steps {
|
|
sh '''
|
|
set -eux
|
|
docker version
|
|
curl -fsS http://registry:5000/v2/_catalog
|
|
curl -fsS http://host.docker.internal:4444/status
|
|
docker pull selenoid/vnc:chrome_128.0
|
|
docker pull selenoid/video-recorder:latest-release || docker pull selenoid/video-recorder:latest
|
|
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 Job Configs') {
|
|
steps {
|
|
sh '''
|
|
set -eux
|
|
PROJECT_ROOT_PATH="${OTUS_WORKSPACE_ROOT:-/workspace/projectwork}"
|
|
test -f "${PROJECT_ROOT_PATH}/config/jobs/global.yaml"
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
}
|