Skip to content

Commit

Permalink
perf: change debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Aug 5, 2024
1 parent 877b33e commit b8ae066
Showing 1 changed file with 59 additions and 57 deletions.
116 changes: 59 additions & 57 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -178,66 +178,68 @@ pipeline {
env.PIP_MIRROR="https://pypi.tuna.tsinghua.edu.cn/simple"
env.MAVEN_MIRROR="https://maven.aliyun.com/repository/public"
env.APK_MIRROR="mirrors.tuna.tsinghua.edu.cn"
env.repo = ''
}
}
}
stage('Checkout') {
steps {
script {
ALL_APPS.each { app ->
dir(app) {
if (app == env.repo || env.repo == '') {
git url: "[email protected]:jumpserver/${app}.git", branch: "${env.branch}"
}
}
}
}
}
}
stage('Build pre apps') {
steps {
script {
def ceStages = MID_APPS.collectEntries{ app ->
["Build ${app}": {
stage("Build ${app}") {
dir(app) {
script {
def type = "MID"
if (app == "core-xpack") {
type = "EE-MID"
}
buildImage(app, env.release_version, type)
}
}
}
}]
}
parallel ceStages
}
}
}
stage('Build Apps') {
steps {
script {
def buildStages = BUILD_APPS.collectEntries{ app ->
["Build ${app}": {
stage("Build ${app}") {
dir(app) {
script {
if (app in CE_APPS) {
buildImage(app, env.release_version, "CE")
}
buildImage(app, env.release_version, "EE")
}
}
}
}]
}
parallel buildStages

echo "All env: ${env}"

}
}
}
// stage('Checkout') {
// steps {
// script {
// ALL_APPS.each { app ->
// dir(app) {
// if (app == env.repo || env.repo == '') {
// git url: "[email protected]:jumpserver/${app}.git", branch: "${env.branch}"
// }
// }
// }
// }
// }
// }
// stage('Build pre apps') {
// steps {
// script {
// def ceStages = MID_APPS.collectEntries{ app ->
// ["Build ${app}": {
// stage("Build ${app}") {
// dir(app) {
// script {
// def type = "MID"
// if (app == "core-xpack") {
// type = "EE-MID"
// }
// buildImage(app, env.release_version, type)
// }
// }
// }
// }]
// }
// parallel ceStages
// }
// }
// }
// stage('Build Apps') {
// steps {
// script {
// def buildStages = BUILD_APPS.collectEntries{ app ->
// ["Build ${app}": {
// stage("Build ${app}") {
// dir(app) {
// script {
// if (app in CE_APPS) {
// buildImage(app, env.release_version, "CE")
// }
// buildImage(app, env.release_version, "EE")
// }
// }
// }
// }]
// }
// parallel buildStages
// }
// }
// }
stage('Restart') {
steps {
script {
Expand Down

0 comments on commit b8ae066

Please sign in to comment.