Add a output to 'build-vsix' task

This commit is contained in:
Kris De Volder
2016-12-08 14:14:21 -08:00
parent 4a4f6e492f
commit 394bfad492
5 changed files with 27 additions and 15 deletions

View File

@@ -1,3 +1,4 @@
#!/bin/bash
fly -t tools destroy-pipeline -p sts4
branch=`git rev-parse --abbrev-ref HEAD`
fly -t tools destroy-pipeline -p sts4-${branch}

View File

@@ -9,7 +9,7 @@ resources:
type: git
source:
uri: git@github.com:spring-projects/sts4.git
branch: master
branch: {{branch}}
username: kdvolder
private_key: {{rsa_id}}
paths:
@@ -18,7 +18,7 @@ resources:
type: git
source:
uri: git@github.com:spring-projects/sts4.git
branch: master
branch: {{branch}}
private_key: {{rsa_id}}
- name: slack-notification
type: slack-notification
@@ -47,17 +47,7 @@ jobs:
- get: sts4
trigger: true
- task: build-vscode-extensions
config:
inputs:
- name: sts4
platform: linux
image_resource:
type: docker-image
source:
repository: kdvolder/sts4-build-env
run:
path: "./build-all.sh"
dir: "sts4/vscode-extensions"
file: sts4/concourse/tasks/build-vscode-extensions.yml
on_failure:
put: slack-notification
params:

View File

@@ -1,2 +1,3 @@
#!/bin/bash
fly -t tools set-pipeline --load-vars-from ${HOME}/.sts4-concourse-credentials.yml -p sts4 -c pipeline.yml
branch=`git rev-parse --abbrev-ref HEAD`
fly -t tools set-pipeline --var "branch=${branch}"--load-vars-from ${HOME}/.sts4-concourse-credentials.yml -p sts4-${branch} -c pipeline.yml

View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
workdir=`pwd`
cd sts4/vscode-extensions
./build-all.sh
cd $workdir
mv sts4/vscode-extensions/vscode-*/target/*.vsix vsix-files/

View File

@@ -0,0 +1,11 @@
inputs:
- name: sts4
outputs:
- name: vsix-files
platform: linux
image_resource:
type: docker-image
source:
repository: kdvolder/sts4-build-env
run:
path: "sts4/concourse/tasks/build-vscode-extensions.sh"