Add a 'trigger-rc-build' job to pipeline

This commit is contained in:
Kris De Volder
2017-02-02 16:04:39 -08:00
parent ffb4c62ca0
commit dc0327fb0c
3 changed files with 43 additions and 0 deletions

View File

@@ -19,6 +19,12 @@ resources:
private_key: {{rsa_id}}
paths:
- concourse/docker
- name: sts4-out
type: git
source:
uri: git@github.com:spring-projects/sts4.git
branch: {{branch}}
private_key: {{rsa_id}}
- name: sts4
type: git
source:
@@ -107,6 +113,23 @@ jobs:
channel: "#eclipse-tools"
text: |
Concourse ${BUILD_PIPELINE_NAME}/${BUILD_JOB_NAME}/${BUILD_NAME} has failed!
- name: trigger-manifest-yaml-rc-build
plan:
- get: sts4
passed:
- build-snapshot-website
- get: s3-manifest-yaml-vsix-snapshot
passed:
- build-snapshot-website
- task: trigger-manifest-yaml-rc-build
file: sts4/concourse/tasks/create-rc-build-tag.yml
params:
extension_id: vscode-manifest-yaml
- put: sts4-out
params:
repository: sts4
tag: out/tag
only_tag: true
- name: build-snapshot-website
plan:
- aggregate:

View File

@@ -0,0 +1,9 @@
#!/bin/bash
timestamp=`date -u +%Y%m%d%H%M`
base_dir=`pwd`
cd sts4/vscode-extensions/${extension_id}
base_version=`jq -r .version package.json`
echo ${extension_id}-${base_version}-RC${timestamp} > ${base_dir}/out/tag

View File

@@ -0,0 +1,11 @@
platform: linux
image_resource:
type: docker-image
source:
repository: kdvolder/sts4-build-env
inputs:
- name: sts4
outputs:
- name: out
run:
path: sts4/concourse/tasks/create-rc-build-tag.sh