1 Star 0 Fork 14.8K

user_5348805/RuoYi-Cloud_1

forked from 若依/RuoYi-Cloud 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Jenkinsfile-并行模板 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
user_5348805 提交于 2022-09-15 02:15 . add Jenkinsfile-并行模板.
pipeline {
agent {
node {
label 'base'
}
}
stages {
stage('unit test') {
agent none
steps {
container('maven') {
script {
def branchedStages = [:]
for (STAGE_NAME in ["Branch_1","Branch_2","Branch_3"]) {
// Define and add to stages dict/map of parallel branch stages
branchedStages["${STAGE_NAME}"] = {
stage("Parallel Branch Stage: ${STAGE_NAME}") {
// Parallel stage work here
script {
echo "sleep 10"
}
}
}
}
// Execute the stages in parallel
parallel branchedStages
}
}
}
}
stage('stage-xwwqr') {
agent none
steps {
echo '瓜娃子'
}
}
}
environment {
DOCKER_CREDENTIAL_ID = 'dockerhub'
KUBECONFIG_CREDENTIAL_ID = 'kubeconfig'
REGISTRY = 'docker.io'
DOCKERHUB_NAMESPACE = 'shaowenchen'
APP_NAME = 'devops-python-sample'
SONAR_CREDENTIAL_ID = 'sonar-token'
}
parameters {
string(name: 'BRANCH_NAME', defaultValue: 'master', description: '')
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/fulinzhongguo/RuoYi-Cloud_1.git
git@gitee.com:fulinzhongguo/RuoYi-Cloud_1.git
fulinzhongguo
RuoYi-Cloud_1
RuoYi-Cloud_1
master

搜索帮助