From 161bba6bb1394c2c055430aa90bec6bed33b82c6 Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Tue, 26 Mar 2019 16:40:15 +0100 Subject: [PATCH 01/13] feat(release): setup complete release preparation and semantic-release --- Jenkinsfile | 105 ++++++++++++++++++------ index.js | 2 - package.json | 7 +- release.config.js | 55 +++++++++++++ src/scripts/logBuild.js | 12 +++ src/scripts/semantic-release/prepare.js | 13 +++ 6 files changed, 165 insertions(+), 29 deletions(-) create mode 100644 release.config.js create mode 100644 src/scripts/logBuild.js create mode 100644 src/scripts/semantic-release/prepare.js diff --git a/Jenkinsfile b/Jenkinsfile index 7428e9a..f63ba23 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,19 @@ pipeline { parameters { + booleanParam(name: 'deploy', defaultValue: true, description: 'Deploy build') + booleanParam(name: 'store', defaultValue: false, description: 'Store build') + booleanParam(name: 'release', defaultValue: false, description: 'Release build') + password(name: 'GH_TOKEN', defaultValue: '', description: 'Github user token. Note: don\'t use a password, will be logged to console on error.') choice(name: 'destination', description: 'Destination folder', choices: ['asterics-web-devlinux/WebACS', 'asterics-web-devwindows/WebACS', 'asterics-web-production/WebACS' ]) choice(name: 'agent', description: 'Agent', choices: ['Linux', 'Win']) choice(name: 'image', description: 'Docker Image', choices: ['node:10', 'node:11']) gitParameter(name: 'BRANCH', branchFilter: 'origin.*?/(.*)', defaultValue: 'master', type: 'PT_BRANCH_TAG', useRepository: 'WebACS') } + triggers { + // pollSCM('H/15 * * * *') + pollSCM('* * * * *') + } agent none stages { stage('Cleanup') { @@ -30,6 +38,20 @@ pipeline { ''' } } + stage('Prepare') { + when { + anyOf { + equals expected: true, actual: params.release + equals expected: true, actual: params.store + } + } + agent { + label params.agent + } + steps { + sh 'cd dist && zip -r ../WebACS.zip *' + } + } stage('Test') { agent { docker { @@ -45,31 +67,64 @@ pipeline { ''' } } - stage('Archive') { - agent { - label params.agent - } - steps { - sh 'cd dist && zip -r ../WebACS.zip *' - archiveArtifacts artifacts: 'WebACS.zip', fingerprint: true - } - } - stage('Deploy') { - environment { - SERVER = credentials('server') - } - agent { - label params.agent - } - steps { - sh ''' - mkdir build - mv dist build/WebACS - ''' - script { - def remote = [ name: 'studyathome', host: 'studyathome.technikum-wien.at', user: env.SERVER_USR, password: env.SERVER_PSW, allowAnyHosts: true ] - sshRemove remote: remote, path: "/var/www/html/${params.destination}", failOnError: false - sshPut remote: remote, from: 'build/WebACS', into: "/var/www/html/${params.destination.replace("/WebACS", "")}" + stage('Output') { + parallel { + stage('Deploy') { + when { + equals expected: true, actual: params.deploy + } + agent { + label params.agent + } + environment { + SERVER = credentials('server') + } + steps { + sh ''' + mkdir build + mv dist build/WebACS + ''' + script { + def remote = [ name: 'studyathome', host: 'studyathome.technikum-wien.at', user: env.SERVER_USR, password: env.SERVER_PSW, allowAnyHosts: true ] + sshRemove remote: remote, path: "/var/www/html/${params.destination}", failOnError: false + sshPut remote: remote, from: 'build/WebACS', into: "/var/www/html/${params.destination.replace("/WebACS", "")}" + } + } + } + stage('Store') { + when { + equals expected: true, actual: params.store + } + agent { + label params.agent + } + steps { + archiveArtifacts artifacts: 'WebACS.zip', fingerprint: true + } + } + stage('Release') { + when { + // branch 'master' + // changeset 'assets' + equals expected: true, actual: params.release + } + agent { + docker { + image params.image + label params.agent + } + } + environment { + GIT_BRANCH = "$BRANCH" + } + steps { + sh ''' + git checkout $BRANCH + git pull + yarn release:prepare + yarn release --branch $BRANCH + ''' + } } } } diff --git a/index.js b/index.js index bdd4a87..16f3be6 100644 --- a/index.js +++ b/index.js @@ -7,6 +7,4 @@ import "./assets/css/webACS.css"; import webACS from "./src/webACS.js"; -// import "./node_modules/jquery-ui/ui/" - webACS(); \ No newline at end of file diff --git a/package.json b/package.json index 39a6c52..8a0eed0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "WebACS", - "version": "3.0.1", + "version": "3.0.0", "description": "Assistive Technology Rapid Integration and Construction Set", "main": "index.js", "repository": "https://github.com/asterics/WebACS.git", @@ -10,8 +10,11 @@ "scripts": { "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot", "build": "cross-env NODE_ENV=production webpack --progress --hide-modules", + "postbuild": "node src/scripts/logBuild.js", "test:watch": "cross-env NODE_ENV=test jest --watch", - "test": "cross-env NODE_ENV=test jest" + "test": "cross-env NODE_ENV=test jest", + "release": "semantic-release", + "release:prepare": "yarn add -D semantic-release@15 @semantic-release/commit-analyzer @semantic-release/changelog @semantic-release/exec" }, "devDependencies": { "@babel/cli": "^7.2.3", diff --git a/release.config.js b/release.config.js new file mode 100644 index 0000000..ada1d0f --- /dev/null +++ b/release.config.js @@ -0,0 +1,55 @@ +module.exports = { + repositoryUrl: "https://github.com/asterics/WebACS", + tagFormat: "v${version}", + plugins: [ + [ + "@semantic-release/npm", + { + npmPublish: false + // tarballDir: "dist" + } + ], + [ + "@semantic-release/github", + { + assets: [{ path: "WebACS-v*.zip", label: "AsTeRICS Docs" }, { path: "dist/build.json", label: "build.json" }] + } + ], + [ + "@semantic-release/commit-analyzer", + { + preset: "angular", + releaseRules: [{ type: "docs", scope: "README", release: "patch" }, { type: "major", release: "major" }], + parserOpts: { + noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES"] + } + } + ], + [ + "@semantic-release/release-notes-generator", + { + preset: "angular", + parserOpts: { + noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] + }, + writerOpts: { + commitsSort: ["subject", "scope"] + } + } + ], + [ + "@semantic-release/changelog", + { + changelogFile: "CHANGELOG.md" + } + ], + [ + "@semantic-release/exec", + { + prepareCmd: "node src/scripts/semantic-release/prepare.js ${nextRelease.version} ${options.branch} ${commits.length} ${Date.now()}" + } + ] + ], + dryRun: false, + ci: false +}; diff --git a/src/scripts/logBuild.js b/src/scripts/logBuild.js new file mode 100644 index 0000000..626f886 --- /dev/null +++ b/src/scripts/logBuild.js @@ -0,0 +1,12 @@ +const { writeFileSync } = require("fs"); +const { join } = require("path"); +const { execSync } = require("child_process"); + +let branch = execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf8" }).replace("\n", ""); +let commitId = execSync("git rev-parse HEAD", { encoding: "utf8" }).replace("\n", ""); +let commitUrl = "https://github.com/asterics/WebACS/commit/" + commitId; +let date = Date(); + +let buildInfo = { date, branch, commitId, commitUrl }; + +writeFileSync(join(process.cwd(), "dist/build.json"), JSON.stringify(buildInfo, null, 4), "utf8"); \ No newline at end of file diff --git a/src/scripts/semantic-release/prepare.js b/src/scripts/semantic-release/prepare.js new file mode 100644 index 0000000..02e9de3 --- /dev/null +++ b/src/scripts/semantic-release/prepare.js @@ -0,0 +1,13 @@ +const { lstatSync, readdirSync, symlinkSync } = require("fs"); + +let version = process.argv[2]; + +/* Search `docs.zip` in root folder */ +const release = readdirSync(process.cwd()) + .filter(e => !lstatSync(e).isDirectory()) + .filter(e => e.match(/^WebACS.zip$/)); + +/* Rename if `docs.zip` found */ +if (release.length > 0) { + symlinkSync("WebACS.zip", `WebACS-v${version}.zip`); +} From 2a6c7d82eedbbaba13c783f42994564aa49ea694 Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Tue, 26 Mar 2019 20:16:13 +0100 Subject: [PATCH 02/13] fix(release): correct assets name, adapt build.json creation --- release.config.js | 2 +- src/scripts/logBuild.js | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/release.config.js b/release.config.js index ada1d0f..f1ae882 100644 --- a/release.config.js +++ b/release.config.js @@ -12,7 +12,7 @@ module.exports = { [ "@semantic-release/github", { - assets: [{ path: "WebACS-v*.zip", label: "AsTeRICS Docs" }, { path: "dist/build.json", label: "build.json" }] + assets: [{ path: "WebACS-v*.zip", label: "AsTeRICS WebACS" }, { path: "dist/build.json", label: "build.json" }] } ], [ diff --git a/src/scripts/logBuild.js b/src/scripts/logBuild.js index 626f886..53274e0 100644 --- a/src/scripts/logBuild.js +++ b/src/scripts/logBuild.js @@ -1,12 +1,14 @@ +const { BRANCH } = process.env; const { writeFileSync } = require("fs"); const { join } = require("path"); const { execSync } = require("child_process"); -let branch = execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf8" }).replace("\n", ""); -let commitId = execSync("git rev-parse HEAD", { encoding: "utf8" }).replace("\n", ""); -let commitUrl = "https://github.com/asterics/WebACS/commit/" + commitId; -let date = Date(); +const branch = BRANCH ? BRANCH : execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf8" }).replace("\n", ""); +const commitId = execSync("git rev-parse HEAD", { encoding: "utf8" }).replace("\n", ""); +const commitUrl = "https://github.com/asterics/WebACS/commit/" + commitId; +const date = Date(); -let buildInfo = { date, branch, commitId, commitUrl }; - -writeFileSync(join(process.cwd(), "dist/build.json"), JSON.stringify(buildInfo, null, 4), "utf8"); \ No newline at end of file +const buildInfo = JSON.stringify({ date, branch, commitId, commitUrl }, null, 4); +console.log("Creating build information:") +console.log(buildInfo); +writeFileSync(join(process.cwd(), "dist/build.json"), buildInfo, "utf8"); \ No newline at end of file From 9b1ec64a3e49ac6c52dbdcc5a3475d766b07231b Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Wed, 27 Mar 2019 00:25:24 +0100 Subject: [PATCH 03/13] build.json: refactor conditional assignment, remove ternary operator --- src/scripts/logBuild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/logBuild.js b/src/scripts/logBuild.js index 53274e0..5c10088 100644 --- a/src/scripts/logBuild.js +++ b/src/scripts/logBuild.js @@ -3,7 +3,7 @@ const { writeFileSync } = require("fs"); const { join } = require("path"); const { execSync } = require("child_process"); -const branch = BRANCH ? BRANCH : execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf8" }).replace("\n", ""); +const branch = BRANCH || execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf8" }).replace("\n", ""); const commitId = execSync("git rev-parse HEAD", { encoding: "utf8" }).replace("\n", ""); const commitUrl = "https://github.com/asterics/WebACS/commit/" + commitId; const date = Date(); From 3a0b75438d2eb5f7ef77f1f123051fc58d193220 Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Wed, 27 Mar 2019 16:46:08 +0100 Subject: [PATCH 04/13] Jenkinsfile: add debug output --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index f63ba23..ea9febf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -121,6 +121,7 @@ pipeline { sh ''' git checkout $BRANCH git pull + ls -la . ./dist yarn release:prepare yarn release --branch $BRANCH ''' From ebcf00e220edc65b46689d44992ee8e3c13b83df Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Wed, 27 Mar 2019 18:33:39 +0100 Subject: [PATCH 05/13] release: correct zip path comment --- src/scripts/semantic-release/prepare.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/semantic-release/prepare.js b/src/scripts/semantic-release/prepare.js index 02e9de3..706abef 100644 --- a/src/scripts/semantic-release/prepare.js +++ b/src/scripts/semantic-release/prepare.js @@ -2,12 +2,12 @@ const { lstatSync, readdirSync, symlinkSync } = require("fs"); let version = process.argv[2]; -/* Search `docs.zip` in root folder */ +/* Search `WebACS.zip` in root folder */ const release = readdirSync(process.cwd()) .filter(e => !lstatSync(e).isDirectory()) .filter(e => e.match(/^WebACS.zip$/)); -/* Rename if `docs.zip` found */ +/* Rename if `WebACS.zip` found */ if (release.length > 0) { symlinkSync("WebACS.zip", `WebACS-v${version}.zip`); } From bd26abbd3df31cb60b1686afb8abf0558d699549 Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Wed, 27 Mar 2019 18:39:56 +0100 Subject: [PATCH 06/13] Jenkinsfile: change mv to ln --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ea9febf..fd8fb4b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -82,7 +82,7 @@ pipeline { steps { sh ''' mkdir build - mv dist build/WebACS + ln -s ../dist build/WebACS ''' script { def remote = [ name: 'studyathome', host: 'studyathome.technikum-wien.at', user: env.SERVER_USR, password: env.SERVER_PSW, allowAnyHosts: true ] @@ -121,7 +121,6 @@ pipeline { sh ''' git checkout $BRANCH git pull - ls -la . ./dist yarn release:prepare yarn release --branch $BRANCH ''' From c28570e4afb74b0759d1b53908193ece38e635da Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Wed, 27 Mar 2019 19:12:21 +0100 Subject: [PATCH 07/13] Jenkinsfile: add build.json artifact --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index fd8fb4b..1056514 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -100,6 +100,7 @@ pipeline { } steps { archiveArtifacts artifacts: 'WebACS.zip', fingerprint: true + archiveArtifacts artifacts: 'dist/build.json', fingerprint: true } } stage('Release') { From 32d35b1b1ffde1db0a357848ccaa6e1c151eba7c Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Fri, 29 Mar 2019 00:09:52 +0100 Subject: [PATCH 08/13] feat(release): deploy to github.io, optionally comment on closed issues and pull requests on release --- Jenkinsfile | 66 +++++++++++++++++++++++++++++++++++------------ release.config.js | 8 +++++- 2 files changed, 57 insertions(+), 17 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1056514..32a0394 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,8 +2,11 @@ pipeline { parameters { booleanParam(name: 'deploy', defaultValue: true, description: 'Deploy build') + booleanParam(name: 'deploy_io', defaultValue: false, description: 'Deploy build to github.io') + booleanParam(name: 'deploy_io_exchange', defaultValue: false, description: 'Exchange deployed build to github.io with previous commit') booleanParam(name: 'store', defaultValue: false, description: 'Store build') booleanParam(name: 'release', defaultValue: false, description: 'Release build') + booleanParam(name: 'release_comment', defaultValue: true, description: 'Add comment to each issue and pull request resolved') password(name: 'GH_TOKEN', defaultValue: '', description: 'Github user token. Note: don\'t use a password, will be logged to console on error.') choice(name: 'destination', description: 'Destination folder', choices: ['asterics-web-devlinux/WebACS', 'asterics-web-devwindows/WebACS', 'asterics-web-production/WebACS' ]) choice(name: 'agent', description: 'Agent', choices: ['Linux', 'Win']) @@ -38,7 +41,7 @@ pipeline { ''' } } - stage('Prepare') { + stage('Prepare: Release/Store') { when { anyOf { equals expected: true, actual: params.release @@ -52,21 +55,21 @@ pipeline { sh 'cd dist && zip -r ../WebACS.zip *' } } - stage('Test') { - agent { - docker { - image params.image - label params.agent - } - } - steps { - sh ''' - yarn global add http-server --prefix deps/ - ./deps/bin/hs dist/ & - yarn test - ''' - } - } + // stage('Test') { + // agent { + // docker { + // image params.image + // label params.agent + // } + // } + // steps { + // sh ''' + // yarn global add http-server --prefix deps/ + // ./deps/bin/hs dist/ & + // yarn test + // ''' + // } + // } stage('Output') { parallel { stage('Deploy') { @@ -91,6 +94,37 @@ pipeline { } } } + stage('Deploy: Github IO') { + when { + equals expected: true, actual: params.deploy_io + } + agent { + label params.agent + } + steps { + sh ''' + git clone -b gh-pages --single-branch https://github.com/asterics/WebACS.git gh-pages + ''' + script { + if (params.deploy_io_exchange) { + sh ''' + cd gh-pages + git log + git reset --hard HEAD~1 + git log + ''' + } + } + sh ''' + rm -rf gh-pages/* + cp -r dist/* gh-pages/ + cd gh-pages + git add * + git -c user.name='Mr. Jenkins' -c user.email='studyathome@technikum-wien.at' commit -m 'docs: release WebACS' + git push -f https://$GH_TOKEN@github.com/asterics/WebACS.git + ''' + } + } stage('Store') { when { equals expected: true, actual: params.store diff --git a/release.config.js b/release.config.js index f1ae882..17f3888 100644 --- a/release.config.js +++ b/release.config.js @@ -1,3 +1,8 @@ +const { release_comment } = process.env; +const successComment = release_comment + ? ":tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitHub release]()" + : false; + module.exports = { repositoryUrl: "https://github.com/asterics/WebACS", tagFormat: "v${version}", @@ -12,7 +17,8 @@ module.exports = { [ "@semantic-release/github", { - assets: [{ path: "WebACS-v*.zip", label: "AsTeRICS WebACS" }, { path: "dist/build.json", label: "build.json" }] + assets: [{ path: "WebACS-v*.zip", label: "AsTeRICS WebACS" }, { path: "dist/build.json", label: "build.json" }], + successComment } ], [ From 5be4d5be891587cfeec15154fa4e62e04a268b6c Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Fri, 29 Mar 2019 00:32:53 +0100 Subject: [PATCH 09/13] Jenkinsfile: git add deleted files on release to github.io --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 32a0394..b5616c5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -119,7 +119,8 @@ pipeline { rm -rf gh-pages/* cp -r dist/* gh-pages/ cd gh-pages - git add * + git add . + git add -u . git -c user.name='Mr. Jenkins' -c user.email='studyathome@technikum-wien.at' commit -m 'docs: release WebACS' git push -f https://$GH_TOKEN@github.com/asterics/WebACS.git ''' From 8808310899dbee0129fe28dafe3c5d0cd446cfb0 Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Fri, 29 Mar 2019 00:44:53 +0100 Subject: [PATCH 10/13] Jenkinsfile: uncomment test stage, add debug output of sematic-release configuration --- Jenkinsfile | 31 ++++++++++++++++--------------- release.config.js | 7 ++++++- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b5616c5..6a5d1f5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -55,21 +55,21 @@ pipeline { sh 'cd dist && zip -r ../WebACS.zip *' } } - // stage('Test') { - // agent { - // docker { - // image params.image - // label params.agent - // } - // } - // steps { - // sh ''' - // yarn global add http-server --prefix deps/ - // ./deps/bin/hs dist/ & - // yarn test - // ''' - // } - // } + stage('Test') { + agent { + docker { + image params.image + label params.agent + } + } + steps { + sh ''' + yarn global add http-server --prefix deps/ + ./deps/bin/hs dist/ & + yarn test + ''' + } + } stage('Output') { parallel { stage('Deploy') { @@ -157,6 +157,7 @@ pipeline { sh ''' git checkout $BRANCH git pull + printenv yarn release:prepare yarn release --branch $BRANCH ''' diff --git a/release.config.js b/release.config.js index 17f3888..632261b 100644 --- a/release.config.js +++ b/release.config.js @@ -3,7 +3,7 @@ const successComment = release_comment ? ":tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitHub release]()" : false; -module.exports = { +const config = { repositoryUrl: "https://github.com/asterics/WebACS", tagFormat: "v${version}", plugins: [ @@ -59,3 +59,8 @@ module.exports = { dryRun: false, ci: false }; + +console.log(successComment); +console.log(config); + +module.exports = config; From 51dadb385cb127af5765e71f788f22776a547814 Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Fri, 29 Mar 2019 01:23:11 +0100 Subject: [PATCH 11/13] release: change debug output --- release.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release.config.js b/release.config.js index 632261b..daec596 100644 --- a/release.config.js +++ b/release.config.js @@ -60,7 +60,8 @@ const config = { ci: false }; +console.log(release_comment); console.log(successComment); -console.log(config); +console.log(JSON.stringify(config,null,4)); module.exports = config; From 9cb5307c0f20f84ce0e24cc1833612dea3cc0239 Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Fri, 29 Mar 2019 11:28:03 +0100 Subject: [PATCH 12/13] release: change ternary condition evaluation --- release.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.config.js b/release.config.js index daec596..9f0588e 100644 --- a/release.config.js +++ b/release.config.js @@ -1,5 +1,5 @@ const { release_comment } = process.env; -const successComment = release_comment +const successComment = release_comment === "true" ? ":tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitHub release]()" : false; From d666af769ab59554d067e999a452d984791c406f Mon Sep 17 00:00:00 2001 From: Alija Sabic Date: Fri, 29 Mar 2019 13:34:37 +0100 Subject: [PATCH 13/13] release: remove debug output, finalize script --- Jenkinsfile | 1 - release.config.js | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6a5d1f5..7b50b56 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -157,7 +157,6 @@ pipeline { sh ''' git checkout $BRANCH git pull - printenv yarn release:prepare yarn release --branch $BRANCH ''' diff --git a/release.config.js b/release.config.js index 9f0588e..c2bd877 100644 --- a/release.config.js +++ b/release.config.js @@ -3,7 +3,7 @@ const successComment = release_comment === "true" ? ":tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitHub release]()" : false; -const config = { +module.exports = { repositoryUrl: "https://github.com/asterics/WebACS", tagFormat: "v${version}", plugins: [ @@ -59,9 +59,3 @@ const config = { dryRun: false, ci: false }; - -console.log(release_comment); -console.log(successComment); -console.log(JSON.stringify(config,null,4)); - -module.exports = config;