Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Meiracle
spring-framework
提交
b7d1bbb9
S
spring-framework
项目概览
Meiracle
/
spring-framework
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b7d1bbb9
编写于
10月 15, 2020
作者:
B
Brian Clozel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Configure Concourse release pipeline
Closes gh-25911
上级
603a1dd3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
111 addition
and
18 deletion
+111
-18
ci/config/release-scripts.yml
ci/config/release-scripts.yml
+3
-0
ci/pipeline.yml
ci/pipeline.yml
+80
-17
ci/scripts/promote-version.sh
ci/scripts/promote-version.sh
+4
-1
ci/scripts/sync-to-maven-central.sh
ci/scripts/sync-to-maven-central.sh
+8
-0
ci/tasks/sync-to-maven-central.yml
ci/tasks/sync-to-maven-central.yml
+16
-0
未找到文件。
ci/config/release-scripts.yml
0 → 100644
浏览文件 @
b7d1bbb9
distribute
:
optional-deployments
:
-
'
.*\\.zip'
ci/pipeline.yml
浏览文件 @
b7d1bbb9
anchors
:
slack-fail-params
:
&slack-fail-params
text
:
>
:concourse-failed: <!here> <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} failed!>
[$TEXT_FILE_CONTENT]
text_file
:
git-repo/build/build-scan-uri.txt
silent
:
true
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
gradle-enterprise-task-params
:
&gradle-enterprise-task-params
GRADLE_ENTERPRISE_ACCESS_KEY
:
((gradle_enterprise_secret_access_key))
GRADLE_ENTERPRISE_CACHE_USERNAME
:
((gradle_enterprise_cache_user.username))
GRADLE_ENTERPRISE_CACHE_PASSWORD
:
((gradle_enterprise_cache_user.password))
artifactory-task-params
:
&artifactory-task-params
ARTIFACTORY_SERVER
:
((artifactory-server))
ARTIFACTORY_USERNAME
:
((artifactory-username))
ARTIFACTORY_PASSWORD
:
((artifactory-password))
bintray-task-params
:
&bintray-task-params
BINTRAY_SUBJECT
:
((bintray-subject))
BINTRAY_REPO
:
((bintray-repo))
BINTRAY_USERNAME
:
((bintray-username))
BINTRAY_API_KEY
:
((bintray-api-key))
docker-resource-source
:
&docker-resource-source
username
:
((docker-hub-username))
password
:
((docker-hub-password))
tag
:
5.3.x
gradle-enterprise-task-params
:
&gradle-enterprise-task-params
GRADLE_ENTERPRISE_ACCESS_KEY
:
((gradle_enterprise_secret_access_key))
GRADLE_ENTERPRISE_CACHE_USERNAME
:
((gradle_enterprise_cache_user.username))
GRADLE_ENTERPRISE_CACHE_PASSWORD
:
((gradle_enterprise_cache_user.password))
slack-fail-params
:
&slack-fail-params
text
:
>
:concourse-failed: <!here> <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} failed!>
[$TEXT_FILE_CONTENT]
text_file
:
git-repo/build/build-scan-uri.txt
silent
:
true
icon_emoji
:
"
:concourse:"
username
:
concourse-ci
sontatype-task-params
:
&sonatype-task-params
SONATYPE_USER_TOKEN
:
((sonatype-user-token))
SONATYPE_PASSWORD_TOKEN
:
((sonatype-user-token-password))
resource_types
:
-
name
:
artifactory-resource
type
:
docker-image
...
...
@@ -364,10 +372,65 @@ jobs:
params
:
RELEASE_TYPE
:
RC
<<
:
*artifactory-task-params
-
name
:
stage-release
serial
:
true
plan
:
-
get
:
spring-framework-ci-image
-
get
:
git-repo
trigger
:
false
-
task
:
stage
image
:
spring-framework-ci-image
file
:
git-repo/ci/tasks/stage-version.yml
params
:
RELEASE_TYPE
:
RELEASE
<<
:
*gradle-enterprise-task-params
-
put
:
artifactory-repo
params
:
<<
:
*artifactory-params
repo
:
libs-staging-local
-
put
:
git-repo
params
:
repository
:
stage-git-repo
-
name
:
promote-release
serial
:
true
plan
:
-
get
:
spring-framework-ci-image
-
get
:
git-repo
trigger
:
false
-
get
:
artifactory-repo
trigger
:
false
passed
:
[
stage-release
]
params
:
download_artifacts
:
false
save_build_info
:
true
-
task
:
promote
image
:
spring-framework-ci-image
file
:
git-repo/ci/tasks/promote-version.yml
params
:
RELEASE_TYPE
:
RELEASE
<<
:
*artifactory-task-params
<<
:
*bintray-task-params
-
name
:
sync-to-maven-central
serial
:
true
plan
:
-
get
:
spring-framework-ci-image
-
get
:
git-repo
-
get
:
artifactory-repo
trigger
:
true
passed
:
[
promote-release
]
params
:
download_artifacts
:
false
save_build_info
:
true
-
task
:
sync-to-maven-central
image
:
spring-framework-ci-image
file
:
git-repo/ci/tasks/sync-to-maven-central.yml
params
:
<<
:
*bintray-task-params
<<
:
*sonatype-task-params
groups
:
-
name
:
"
Build
"
-
name
:
"
builds
"
jobs
:
[
"
build"
,
"
jdk11-build"
,
"
jdk14-build"
,
"
jdk15-build"
]
-
name
:
"
Release
"
jobs
:
[
"
stage-milestone"
,
"
stage-rc"
,
"
promote-milestone"
,
"
promote-rc
"
]
-
name
:
"
CI
I
mages"
-
name
:
"
releases
"
jobs
:
[
"
stage-milestone"
,
"
stage-rc"
,
"
stage-release"
,
"
promote-milestone"
,
"
promote-rc"
,
"
promote-release"
,
"
sync-to-maven-central
"
]
-
name
:
"
ci-i
mages"
jobs
:
[
"
build-spring-framework-ci-images"
]
ci/scripts/promote-version.sh
浏览文件 @
b7d1bbb9
#!/bin/bash
source
$(
dirname
$0
)
/common.sh
CONFIG_DIR
=
git-repo/ci/config
version
=
$(
cat
artifactory-repo/build-info.json | jq
-r
'.buildInfo.modules[0].id'
|
sed
's/.*:.*:\(.*\)/\1/'
)
export
BUILD_INFO_LOCATION
=
$(
pwd
)
/artifactory-repo/build-info.json
java
-jar
/opt/concourse-release-scripts.jar promote
$RELEASE_TYPE
$BUILD_INFO_LOCATION
>
/dev/null
||
{
exit
1
;
}
java
-jar
/opt/concourse-release-scripts.jar distribute
$RELEASE_TYPE
$BUILD_INFO_LOCATION
>
/dev/null
||
{
exit
1
;
}
java
-jar
/opt/concourse-release-scripts.jar
\
--spring
.config.location
=
${
CONFIG_DIR
}
/release-scripts.yml
\
distribute
$RELEASE_TYPE
$BUILD_INFO_LOCATION
>
/dev/null
||
{
exit
1
;
}
echo
"Promotion complete"
echo
$version
>
version/version
ci/scripts/sync-to-maven-central.sh
0 → 100755
浏览文件 @
b7d1bbb9
#!/bin/bash
export
BUILD_INFO_LOCATION
=
$(
pwd
)
/artifactory-repo/build-info.json
version
=
$(
cat
artifactory-repo/build-info.json | jq
-r
'.buildInfo.modules[0].id'
|
sed
's/.*:.*:\(.*\)/\1/'
)
java
-jar
/opt/concourse-release-scripts.jar syncToCentral
"RELEASE"
$BUILD_INFO_LOCATION
||
{
exit
1
;
}
echo
"Sync complete"
echo
$version
>
version/version
ci/tasks/sync-to-maven-central.yml
0 → 100644
浏览文件 @
b7d1bbb9
---
platform
:
linux
inputs
:
-
name
:
git-repo
-
name
:
artifactory-repo
outputs
:
-
name
:
version
params
:
BINTRAY_REPO
:
BINTRAY_SUBJECT
:
BINTRAY_USERNAME
:
BINTRAY_API_KEY
:
SONATYPE_USER_TOKEN
:
SONATYPE_PASSWORD_TOKEN
:
run
:
path
:
git-repo/ci/scripts/sync-to-maven-central.sh
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录