ci: stabilize Jenkins jobs and mobile pipeline
This commit is contained in:
@@ -5,6 +5,18 @@ pipeline {
|
||||
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 '''
|
||||
@@ -17,13 +29,12 @@ pipeline {
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Check Sources') {
|
||||
stage('Check Job Configs') {
|
||||
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
|
||||
HW8_ROOT_PATH="${HW8_ROOT:-/workspace/hw8}"
|
||||
test -f "${HW8_ROOT_PATH}/config/jobs/global.yaml"
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user