Revert "build file"
Some checks failed
test/timeline-server/pipeline/head There was a failure building this commit

This reverts commit 0383bf3afd.
This commit is contained in:
jiangh277
2025-12-24 16:39:39 +08:00
parent 0383bf3afd
commit acfb4974a8

8
Jenkinsfile vendored
View File

@@ -10,7 +10,6 @@ pipeline {
REGISTRY = 'timeline-registry:5000'
PROJECT_NAME = 'timeline-server'
DOCKER_REGISTRY = 'timeline-registry:5000'
DOCKER_BUILDKIT = '1' // 启用 BuildKit
}
parameters {
@@ -94,8 +93,6 @@ pipeline {
stage('Build Docker Images') {
steps {
script {
// 启用 Docker BuildKit
withEnv(['DOCKER_BUILDKIT=1']) {
def services = ['gateway', 'user', 'story', 'file']
def imageTags = [:]
@@ -109,8 +106,8 @@ pipeline {
writeFile file: "${serviceDir}/Dockerfile", text: getDockerfileContent(serviceDir)
}
// 构建镜像,使用 BuildKit
sh "docker build --platform linux/amd64 -t ${imageName} -t ${latestImageName} ${serviceDir}/."
// 构建镜像
sh "docker build -t ${imageName} -t ${latestImageName} ${serviceDir}/."
imageTags[service] = imageName
}
@@ -118,7 +115,6 @@ pipeline {
}
}
}
}
stage('Push Images') {
steps {