Add ovsx publishing to pipeline
This commit is contained in:
@@ -905,6 +905,41 @@ jobs:
|
||||
text: |
|
||||
Build ${BUILD_PIPELINE_NAME}/${BUILD_JOB_NAME}/${BUILD_NAME} has succeed!
|
||||
Release candidate available for testing $TEXT_FILE_CONTENT
|
||||
- name: publish-ovsx-releases
|
||||
serial: true
|
||||
plan:
|
||||
- in_parallel:
|
||||
- get: tasks
|
||||
- get: s3-concourse-vsix-snapshot
|
||||
passed:
|
||||
- build-concourse-rc
|
||||
- get: s3-manifest-yaml-vsix-snapshot
|
||||
passed:
|
||||
- build-manifest-yaml-rc
|
||||
- get: s3-bosh-vsix-snapshot
|
||||
passed:
|
||||
- build-bosh-rc
|
||||
- get: s3-spring-boot-vsix-snapshot
|
||||
passed:
|
||||
- build-spring-boot-rc
|
||||
- task: publish-ovsx-releases
|
||||
file: tasks/concourse/tasks/publish-ovsx-releases.yml
|
||||
input_mapping:
|
||||
sts4: tasks
|
||||
params:
|
||||
ovsx_token: ((ovsx_token))
|
||||
on_failure:
|
||||
put: slack-notification
|
||||
params:
|
||||
text: |
|
||||
Concourse ${BUILD_PIPELINE_NAME}/${BUILD_JOB_NAME}/${BUILD_NAME} has failed!
|
||||
on_success:
|
||||
put: slack-notification
|
||||
params:
|
||||
channel: "#tools-team-internal"
|
||||
text_file: version/version
|
||||
text: |
|
||||
STS 4 VScode Extensions $TEXT_FILE_CONTENT released to ovsx.
|
||||
- name: publish-release
|
||||
serial: true
|
||||
plan:
|
||||
@@ -1317,6 +1352,7 @@ groups:
|
||||
- build-bosh-vsix-snapshot
|
||||
- build-spring-boot-vsix-snapshot
|
||||
- publish-concourse-vsix-release
|
||||
- publish-ovsx-releases
|
||||
- create-rc-wiki-page
|
||||
- vsix-s3-publish
|
||||
- create-release-wiki-page
|
||||
|
||||
25
concourse/tasks/publish-ovsx-releases.sh
Executable file
25
concourse/tasks/publish-ovsx-releases.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
workdir=`pwd`
|
||||
|
||||
#Uncomments the below to publish all vsix files in the task inputs:
|
||||
#vsix_files=`ls ${workdir}/s3-*/*.vsix`
|
||||
|
||||
#Uncomment the below to publish only concourse vxix
|
||||
#vsix_files=`ls ${workdir}/s3-*/vscode-concourse-*.vsix`
|
||||
|
||||
#Uncomment the below to publish all vsix files
|
||||
vsix_files=`ls ${workdir}/s3-*/vscode-*.vsix`
|
||||
|
||||
for vsix_file in $vsix_files
|
||||
do
|
||||
echo "****************************************************************"
|
||||
echo "*** Publishing : ${vsix_file} to https://open-vsx.org/"
|
||||
echo "****************************************************************"
|
||||
echo ""
|
||||
echo "We are runing the following command:"
|
||||
echo ""
|
||||
echo " vsce publish -p $vsce_token $vsix_file"
|
||||
echo ""
|
||||
#vsce publish -p $vsce_token $vsix_file
|
||||
done
|
||||
14
concourse/tasks/publish-ovsx-releases.yml
Normal file
14
concourse/tasks/publish-ovsx-releases.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
inputs:
|
||||
- name: sts4
|
||||
- name: s3-manifest-yaml-vsix-snapshot
|
||||
- name: s3-concourse-vsix-snapshot
|
||||
- name: s3-bosh-vsix-snapshot
|
||||
- name: s3-spring-boot-vsix-snapshot
|
||||
platform: linux
|
||||
run:
|
||||
path: sts4/concourse/tasks/publish-ovsx-releases.sh
|
||||
image_resource:
|
||||
type: docker-image
|
||||
source:
|
||||
repository: kdvolder/sts4-build-env
|
||||
|
||||
Reference in New Issue
Block a user