Ai
1 Star 0 Fork 0

SourceHot/spring-retry

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pipeline.yml 3.20 KB
一键复制 编辑 原始数据 按行查看 历史
Dave Syer 提交于 2021-01-09 01:31 +08:00 . Make spring-core optional
# fly --target team login --concourse-url https://ci.spring.io --team-name "Spring Team"
# fly --target team set-pipeline --config pipeline.yml --pipeline spring-retry --load-vars-from credentials.yml
---
resource_types:
- name: slack-notification
type: docker-image
source:
repository: nebhale/slack-notification-resource
resources:
- name: source
type: git
source:
uri: https://github.com/spring-projects/spring-retry.git
- name: slack
type: slack-notification
source:
url: {{slack-url}}
slack-failure: &slack-failure
put: slack
params:
attachments:
- color: danger
fallback: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME <FAILURE>"
text: "<!here> Build has failed"
title: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME"
title_link: $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
slack-success: &slack-success
put: slack
params:
attachments:
- color: good
fallback: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME <SUCCESS>"
text: "Build has succeeded"
title: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME #$BUILD_NAME"
title_link: $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
jobs:
- name: build
plan:
- get: source
trigger: true
- task: build
config:
platform: linux
image_resource:
type: docker-image
source:
repository: springio/spring-ci-base
inputs:
- name: source
caches:
- path: source/.m2
run:
dir: source
path: sh
args:
- -c
- |
rm -rf ~/.m2
ln -s $(pwd)/.m2 ~/.m2
./mvnw install -s .mvn/settings.xml
params:
TERM: dumb
passphrase: {{passphrase}}
- name: next
plan:
- get: source
trigger: true
- task: build
config:
platform: linux
image_resource:
type: docker-image
source:
repository: springio/spring-ci-base
inputs:
- name: source
caches:
- path: source/.m2
run:
dir: source
path: sh
args:
- -c
- |
rm -rf ~/.m2
ln -s $(pwd)/.m2 ~/.m2
./mvnw install -s .mvn/settings.xml -Dspring.framework.version=5.3.2
params:
TERM: dumb
passphrase: {{passphrase}}
- name: deploy
plan:
- get: source
trigger: true
passed: [build, next]
- task: deploy
config:
platform: linux
image_resource:
type: docker-image
source:
repository: springio/spring-ci-base
inputs:
- name: source
caches:
- path: source/.m2
run:
dir: source
path: sh
args:
- -c
- |
rm -rf ~/.m2
ln -s $(pwd)/.m2 ~/.m2
./mvnw deploy -DskipTests -s .mvn/settings.xml
params:
TERM: dumb
passphrase: {{passphrase}}
sonatype_username: {{sonatype-username}}
sonatype_password: {{sonatype-password}}
spring_username: {{spring-username}}
spring_password: {{spring-password}}
on_failure: *slack-failure
on_success: *slack-success
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/source-hot/spring-retry.git
git@gitee.com:source-hot/spring-retry.git
source-hot
spring-retry
spring-retry
sh1.3.1

搜索帮助