aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2020-04-03 15:12:08 +0200
committersonartech <sonartech@sonarsource.com>2020-04-16 20:03:49 +0000
commit9f5b2d2e2171b07ad92aa214d1c0069de296f0b8 (patch)
treefe70828866b6d210935509454eec4e61a1c8fe53 /.github
parent5c2e35eb1b4c315b29b7e91a9921633873327347 (diff)
downloadsonarqube-9f5b2d2e2171b07ad92aa214d1c0069de296f0b8.tar.gz
sonarqube-9f5b2d2e2171b07ad92aa214d1c0069de296f0b8.zip
SONAR-12884 Re-organize code, improve generated Jira ticket, update commit message
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/upgrade-plugins.yml14
1 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/upgrade-plugins.yml b/.github/workflows/upgrade-plugins.yml
index e9a7fd09dcc..6bd50ff4cee 100644
--- a/.github/workflows/upgrade-plugins.yml
+++ b/.github/workflows/upgrade-plugins.yml
@@ -2,12 +2,12 @@ name: Upgrade SonarQube bundled plugins
on:
schedule:
# At 9:00 every Monday
- - cron: '0 9 * * MON'
+ - cron: "0 9 * * MON"
jobs:
upgrade-plugins-job:
# prevent job to run on public repository sonarsource/sonarqube (where action sources are not available)
- if: github.repository == 'sonarsource/sonar-enterprise'
+ if: github.repository == 'sonarsource/sonar-enterprise'
runs-on: ubuntu-latest
name: Upgrades the version of plugins bundled into SonarQube
steps:
@@ -23,7 +23,6 @@ jobs:
JIRA_LOGIN: ${{ secrets.JIRA_LOGIN }}
JIRA_PASSWORD: ${{ secrets.JIRA_PASSWORD }}
REPOX_API_KEY: ${{ secrets.REPOX_API_KEY }}
- REPOX_LOGIN: ${{ secrets.REPOX_LOGIN }}
with:
build_gradle_path: build.gradle
- name: Create Pull Request
@@ -33,8 +32,15 @@ jobs:
COMMIT_MESSAGE: ${{ steps.upgrade-plugins.outputs.commit_message }}
GITHUB_TOKEN: ${{ secrets.GITHUB_ORG_TOKEN }}
PULL_REQUEST_TITLE: ${{ steps.upgrade-plugins.outputs.commit_message }}
- PULL_REQUEST_BODY: Auto-generated pull request to apply plugin upgrades. Release notes in [${{ steps.upgrade-plugins.outputs.jira_ticket }}](https://jira.sonarsource.com/browse/${{ steps.upgrade-plugins.outputs.jira_ticket }}).
+ PULL_REQUEST_BODY: Auto-generated pull request to apply plugin upgrades.
PULL_REQUEST_BRANCH: bot/upgrade_plugins
PULL_REQUEST_REVIEWERS: wouter-admiraal-sonarsource
BRANCH_SUFFIX: timestamp
PULL_REQUEST_LABELS: bot
+ - name: Notify failures on Slack
+ if: failure()
+ uses: Ilshidur/action-slack@2.0.0
+ env:
+ SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
+ with:
+ args: "Failed to create a PR for updating plugins, see the logs at https://github.com/SonarSource/sonar-enterprise/actions"