fix: Jenkinsfile@NonCPS
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -431,7 +431,6 @@ pipeline {
|
|||||||
// ============================================
|
// ============================================
|
||||||
|
|
||||||
// 获取变更的文件列表
|
// 获取变更的文件列表
|
||||||
@NonCPS
|
|
||||||
def getChangedFiles() {
|
def getChangedFiles() {
|
||||||
def changedFiles = sh(
|
def changedFiles = sh(
|
||||||
script: '''
|
script: '''
|
||||||
@@ -460,7 +459,6 @@ def checkIfDepsChanged(List<String> changedFiles) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 检测需要构建的服务
|
// 检测需要构建的服务
|
||||||
@NonCPS
|
|
||||||
def detectServicesToBuild(List<String> changedFiles) {
|
def detectServicesToBuild(List<String> changedFiles) {
|
||||||
if (changedFiles.contains('all')) {
|
if (changedFiles.contains('all')) {
|
||||||
return env.CORE_SERVICES
|
return env.CORE_SERVICES
|
||||||
@@ -491,7 +489,6 @@ def detectServicesToBuild(List<String> changedFiles) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 检查依赖镜像是否存在
|
// 检查依赖镜像是否存在
|
||||||
@NonCPS
|
|
||||||
def depsImageExists() {
|
def depsImageExists() {
|
||||||
def result = sh(
|
def result = sh(
|
||||||
script: "docker manifest inspect ${env.DEPS_IMAGE} > /dev/null 2>&1",
|
script: "docker manifest inspect ${env.DEPS_IMAGE} > /dev/null 2>&1",
|
||||||
|
|||||||
Reference in New Issue
Block a user