Skip to content

Commit

Permalink
chore: add semantic-release-jira plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Gieseke authored and Philipp Hinrichsen committed Sep 5, 2018
1 parent 228cea9 commit 63fff2d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"branch": "master",
"tagFormat": "master+v${version}",
"verifyConditions": ["@semantic-release/github"],
"verifyConditions": ["@semantic-release/github", "semantic-release-jira"],
"prepare": [],
"publish": [
{
Expand All @@ -10,5 +10,13 @@
"shell": "/bin/bash"
},
"@semantic-release/github"
],
"success": [
"@semantic-release/github",
{
"path": "semantic-release-jira",
"apiURL": "https://jira.mesosphere.com/rest/api/2/issue/${issueKey}",
"apiJSON": '{ "update": { "labels": [ { "add": "released-repo:dcos-ui" }, { "add": "released-tag:master+v${version}" } ] } }'
}
]
}
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ pipeline {
string(credentialsId: "d146870f-03b0-4f6a-ab70-1d09757a51fc", variable: "GH_TOKEN"), // semantic-release
string(credentialsId: "3f0dbb48-de33-431f-b91c-2366d2f0e1cf",variable: "AWS_ACCESS_KEY_ID"), // upload-build
string(credentialsId: "f585ec9a-3c38-4f67-8bdb-79e5d4761937",variable: "AWS_SECRET_ACCESS_KEY"), // upload-build
usernamePassword(credentialsId: "a7ac7f84-64ea-4483-8e66-bb204484e58f", passwordVariable: "GIT_PASSWORD", usernameVariable: "GIT_USER") // update-dcos-repo
usernamePassword(credentialsId: "a7ac7f84-64ea-4483-8e66-bb204484e58f", passwordVariable: "GIT_PASSWORD", usernameVariable: "GIT_USER"), // update-dcos-repo
usernamePassword(credentialsId: "6c147571-7145-410a-bf9c-4eec462fbe02", passwordVariable: "JIRA_PASS", usernameVariable: "JIRA_USER") // semantic-release-jira
]) {
sh "npx semantic-release"
}
Expand Down
24 changes: 24 additions & 0 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
"react-test-renderer": "15.4.1",
"rxjs-marbles": "2.3.1",
"semantic-release": "15.9.5",
"semantic-release-jira": "1.2.3",
"source-map-loader": "0.1.5",
"string-replace-webpack-plugin": "0.0.3",
"style-loader": "0.20.1",
Expand Down

0 comments on commit 63fff2d

Please sign in to comment.