Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
z_stack
Activiti
提交
17fe1ec8
A
Activiti
项目概览
z_stack
/
Activiti
10 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
Activiti
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
17fe1ec8
编写于
10月 12, 2018
作者:
S
salaboy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
adding pipeline before jx import
上级
65e2bc16
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
113 addition
and
3 deletion
+113
-3
Jenkinsfile
Jenkinsfile
+110
-0
pom.xml
pom.xml
+3
-3
未找到文件。
Jenkinsfile
0 → 100644
浏览文件 @
17fe1ec8
pipeline
{
agent
{
label
"jenkins-maven"
}
environment
{
ORG
=
'activiti'
APP_NAME
=
'activiti-core-common'
CHARTMUSEUM_CREDS
=
credentials
(
'jenkins-x-chartmuseum'
)
}
stages
{
stage
(
'CI Build and push snapshot'
)
{
when
{
branch
'PR-*'
}
environment
{
PREVIEW_VERSION
=
"0.0.0-SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER"
PREVIEW_NAMESPACE
=
"$APP_NAME-$BRANCH_NAME"
.
toLowerCase
()
HELM_RELEASE
=
"$PREVIEW_NAMESPACE"
.
toLowerCase
()
}
steps
{
container
(
'maven'
)
{
sh
"mvn versions:set -DnewVersion=$PREVIEW_VERSION"
sh
"mvn install"
sh
'export VERSION=$PREVIEW_VERSION'
}
}
}
stage
(
'Build Release'
)
{
when
{
branch
'develop'
}
steps
{
container
(
'maven'
)
{
// ensure we're not on a detached head
sh
"git checkout develop"
sh
"git config --global credential.helper store"
sh
"jx step git credentials"
// so we can retrieve the version in later steps
sh
"echo \$(jx-release-version) > VERSION"
sh
"mvn versions:set -DnewVersion=\$(cat VERSION)"
sh
'mvn clean verify'
sh
"git add --all"
sh
"git commit -m \"Release \$(cat VERSION)\" --allow-empty"
sh
"git tag -fa v\$(cat VERSION) -m \"Release version \$(cat VERSION)\""
sh
"git push origin v\$(cat VERSION)"
}
container
(
'maven'
)
{
sh
'mvn clean deploy -DskipTests'
sh
'export VERSION=`cat VERSION`'
sh
"git config --global credential.helper store"
sh
"jx step git credentials"
sh
"updatebot push-version --kind maven org.activiti.core.common:activiti-core-common-dependencies \$(cat VERSION) --merge false"
sh
"updatebot update --merge false"
}
}
}
stage
(
'Build Release from Tag'
)
{
when
{
tag
'*RELEASE'
}
steps
{
container
(
'maven'
)
{
// ensure we're not on a detached head
sh
"git checkout $TAG_NAME"
sh
"git config --global credential.helper store"
sh
"jx step git credentials"
// so we can retrieve the version in later steps
sh
"echo \$TAG_NAME > VERSION"
sh
"mvn versions:set -DnewVersion=\$(cat VERSION)"
}
container
(
'maven'
)
{
sh
'''
mvn clean deploy -P !alfresco -P central
'''
sh
'export VERSION=`cat VERSION`'
sh
"git config --global credential.helper store"
sh
"jx step git credentials"
sh
"echo pushing with update using version \$(cat VERSION)"
sh
"updatebot push-version --kind maven org.activiti.core.common:activiti-core-common-dependencies \$(cat VERSION)"
}
}
}
}
post
{
always
{
cleanWs
()
}
failure
{
input
"""Pipeline failed.
We will keep the build pod around to help you diagnose any failures.
Select Proceed or Abort to terminate the build pod"""
}
}
}
pom.xml
浏览文件 @
17fe1ec8
...
...
@@ -17,8 +17,8 @@
<url>
http://activiti.org
</url>
<properties>
<activiti-build.version>
7.0.39
</activiti-build.version>
<activiti-api.version>
7.0.33
</activiti-api.version>
<activiti-core-common.version>
${project.version}
</activiti-core-common.version>
<activiti-api.version>
${project.version}
</activiti-api.version>
</properties>
<dependencyManagement>
<dependencies>
...
...
@@ -29,8 +29,6 @@
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<!-- Activiti Modules for managed dependencies -->
<!-- This duplicates activiti-dependencies module but we can't import that module here as this is its parent-->
<dependency>
<groupId>
org.activiti.api
</groupId>
<artifactId>
activiti-api-dependencies
</artifactId>
...
...
@@ -38,6 +36,8 @@
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<!-- Activiti Modules for managed dependencies -->
<!-- This duplicates activiti-core-common-dependencies module but we can't import that module here as this is its parent-->
<dependency>
<groupId>
org.activiti.core.common
</groupId>
<artifactId>
activiti-connector-model
</artifactId>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录