From 129445479307070db2f0b364db7eb3267fb9c818 Mon Sep 17 00:00:00 2001 From: BoykoAlex Date: Fri, 15 Mar 2019 11:24:55 -0400 Subject: [PATCH] PT #162599228: Theia extensions publish job stage 1 --- concourse/pipeline.yml | 75 ++++++++++++++++++++++ concourse/tasks/publish-theia-releases.sh | 17 +++++ concourse/tasks/publish-theia-releases.yml | 14 ++++ theia-extensions/test-theia-package.sh | 4 +- 4 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 concourse/tasks/publish-theia-releases.sh create mode 100644 concourse/tasks/publish-theia-releases.yml diff --git a/concourse/pipeline.yml b/concourse/pipeline.yml index 7cd1e62fe..f4b8a090e 100644 --- a/concourse/pipeline.yml +++ b/concourse/pipeline.yml @@ -815,6 +815,62 @@ jobs: text: | Build ${BUILD_PIPELINE_NAME}/${BUILD_JOB_NAME}/${BUILD_NAME} has succeed! Release candidate available for testing $TEXT_FILE_CONTENT +- name: publish-theia-release + serial: true + plan: + - aggregate: + - get: tasks + - get: sts4 + passed: + - build-theia-cf-manifest-yaml-rc + - build-theia-concourse-rc + - build-theia-bosh-rc + - build-theia-spring-boot-rc + - get: theia-version + passed: + - build-theia-concourse-rc + - build-theia-cf-manifest-yaml-rc + - build-theia-bosh-rc + - build-theia-spring-boot-rc + params: + bump: final + - get: s3-concourse-theia-snapshot + passed: + - build-theia-concourse-rc + - get: s3-cf-manifest-yaml-theia-snapshot + passed: + - build-theia-cf-manifest-yaml-rc + - get: s3-bosh-theia-snapshot + passed: + - build-theia-bosh-rc + - get: s3-spring-boot-theia-snapshot + passed: + - build-theia-spring-boot-rc + - task: publish-theia-releases + file: tasks/concourse/tasks/publish-theia-releases.yml + input_mapping: + sts4: tasks + 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: theia-version/version + text: | + STS 4 Theia Extensions $TEXT_FILE_CONTENT released + Releases now available on Vscode Marketplace: + • + • + • + • + # - aggregate: + # - put: theia-version + # params: + # file: theia-version/version - name: build-concourse-rc plan: @@ -1075,6 +1131,9 @@ jobs: - get: version params: bump: patch + - get: theia-version + params: + bump: patch - task: bump-versions file: sts4/concourse/tasks/bump-versions.yml - put: sts4 @@ -1084,6 +1143,9 @@ jobs: - put: version params: file: version/version + - put: theia-version + params: + file: theia-version/version - name: bump-version-minor serial: true plan: @@ -1092,6 +1154,9 @@ jobs: - get: version params: bump: minor + - get: theia-version + params: + bump: minor - task: bump-versions file: sts4/concourse/tasks/bump-versions.yml - put: sts4 @@ -1101,6 +1166,9 @@ jobs: - put: version params: file: version/version + - put: theia-version + params: + file: theia-version/version - name: bump-version-major serial: true plan: @@ -1109,6 +1177,9 @@ jobs: - get: version params: bump: major + - get: theia-version + params: + bump: major - task: bump-versions file: sts4/concourse/tasks/bump-versions.yml - put: sts4 @@ -1118,6 +1189,9 @@ jobs: - put: version params: file: version/version + - put: theia-version + params: + file: theia-version/version # - name: build-atom-snapshot-website # serial: true # plan: @@ -1391,6 +1465,7 @@ groups: - build-theia-cf-manifest-yaml-rc - build-theia-spring-boot-rc - trigger-theia-rc-build + - publish-theia-release - build-cf-manifest-yaml-theia-snapshot - build-concourse-theia-snapshot - build-bosh-theia-snapshot diff --git a/concourse/tasks/publish-theia-releases.sh b/concourse/tasks/publish-theia-releases.sh new file mode 100644 index 000000000..f317b5e4d --- /dev/null +++ b/concourse/tasks/publish-theia-releases.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -e +workdir=`pwd` + +theia_tgz_files=`ls ${workdir}/s3-*-theia-*/theia-*.tgz` + +for theia_tgz_file in $theia_tgz_files +do + echo "****************************************************************" + echo "*** Publishing : ${theia_tgz_file}" + echo "****************************************************************" + echo "" + echo "We are running the following command:" + echo "" + echo " npm publish $theia_tgz_file --access public" + echo "" +done diff --git a/concourse/tasks/publish-theia-releases.yml b/concourse/tasks/publish-theia-releases.yml new file mode 100644 index 000000000..7be130324 --- /dev/null +++ b/concourse/tasks/publish-theia-releases.yml @@ -0,0 +1,14 @@ +inputs: +- name: sts4 +- name: s3-cf-manifest-yaml-theia-snapshot +- name: s3-concourse-theia-snapshot +- name: s3-bosh-theia-snapshot +- name: s3-spring-boot-theia-snapshot +platform: linux +run: + path: sts4/concourse/tasks/publish-theia-releases.sh +image_resource: + type: docker-image + source: + repository: kdvolder/sts4-build-env + \ No newline at end of file diff --git a/theia-extensions/test-theia-package.sh b/theia-extensions/test-theia-package.sh index e3f69dd3c..b98153fda 100755 --- a/theia-extensions/test-theia-package.sh +++ b/theia-extensions/test-theia-package.sh @@ -41,7 +41,9 @@ cat > package.json << EOF "@theia/markers": "latest", "@theia/monaco": "latest", "@theia/typescript": "latest", - "@theia/messages": "latest" + "@theia/messages": "latest", + "@theia/java": "latest", + "@theia/textmate-grammars": "latest" }, "devDependencies": { "@theia/cli": "latest"