bba927d30c
Separate the build step from startup for environment containers. Build step is very slow, and we want to be able to start the containers without rebuilding when troubleshooting Jenkins jobs. TESTS ============================== Run both steps from Jenkins Story: 2010226 Task: 49212 Depends-On: https://review.opendev.org/c/starlingx/tools/+/902792 Signed-off-by: Davlet Panech <davlet.panech@windriver.com> Change-Id: I3462de0a9550310c931cbed2555de1b3a6bc53f9
63 lines
1.2 KiB
Plaintext
63 lines
1.2 KiB
Plaintext
// vim: syn=groovy
|
|
|
|
//
|
|
// Copyright (c) 2022 Wind River Systems, Inc.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
library "common@${params.JENKINS_SCRIPTS_BRANCH}"
|
|
|
|
setBuildDescr()
|
|
|
|
pipeline {
|
|
agent any
|
|
options {
|
|
timestamps()
|
|
}
|
|
parameters {
|
|
string (
|
|
name: 'MASTER_JOB_NAME'
|
|
)
|
|
string (
|
|
name: 'MASTER_BUILD_NUMBER'
|
|
)
|
|
string (
|
|
name: 'JENKINS_SCRIPTS_BRANCH'
|
|
)
|
|
string (
|
|
name: 'BUILD_HOME',
|
|
)
|
|
string (
|
|
name: 'TIMESTAMP'
|
|
)
|
|
string (
|
|
name: 'PUBLISH_TIMESTAMP'
|
|
)
|
|
booleanParam (
|
|
name: 'SHELL_XTRACE'
|
|
)
|
|
booleanParam (
|
|
name: 'REBUILD_BUILDER_IMAGES'
|
|
)
|
|
booleanParam (
|
|
name: 'BUILDER_USE_DOCKER_CACHE'
|
|
)
|
|
booleanParam (
|
|
name: 'USE_DOCKER_CACHE'
|
|
)
|
|
}
|
|
stages {
|
|
stage ("start-containers") {
|
|
steps {
|
|
sh ("${Constants.SCRIPTS_DIR}/build-env-containers.sh")
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
cleanup {
|
|
cleanupPartJob()
|
|
}
|
|
}
|
|
}
|