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