Skip to content

Commit bfc9c5e

Browse files
committed
Use stack-workflow-status Action
Closes gh-9792
1 parent 6fbd038 commit bfc9c5e

File tree

1 file changed

+6
-89
lines changed

1 file changed

+6
-89
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 6 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ jobs:
2424
outputs:
2525
runjobs: ${{ steps.continue.outputs.runjobs }}
2626
steps:
27-
- uses: actions/checkout@v2
28-
- name: Initiate error tracking
29-
uses: spring-projects/track-build-errors-action@v1
30-
with:
31-
job-name: "prerequisites"
32-
- name: Export errors file
33-
uses: actions/upload-artifact@v2
34-
with:
35-
name: errors
36-
path: job-prerequisites.txt
3727
- id: continue
3828
name: Determine if should continue
3929
if: env.RUN_JOBS == 'true'
@@ -67,17 +57,6 @@ jobs:
6757
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
6858
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
6959
run: ./gradlew clean build --continue -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD"
70-
- name: Track error step
71-
uses: spring-projects/track-build-errors-action@v1
72-
if: ${{ failure() }}
73-
with:
74-
job-name: ${{ github.job }}
75-
- name: Export errors file
76-
uses: actions/upload-artifact@v2
77-
if: ${{ failure() }}
78-
with:
79-
name: errors
80-
path: job-${{ github.job }}.txt
8160
snapshot_tests:
8261
name: Test against snapshots
8362
needs: [prerequisites]
@@ -99,17 +78,6 @@ jobs:
9978
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
10079
export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
10180
./gradlew test --refresh-dependencies -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD" -PforceMavenRepositories=snapshot -PspringVersion='5.+' -PreactorVersion='20+' -PspringDataVersion='Neumann-BUILD-SNAPSHOT' -PrsocketVersion=1.1.0-SNAPSHOT -PspringBootVersion=2.4.0-SNAPSHOT -PlocksDisabled --stacktrace
102-
- name: Track error step
103-
uses: spring-projects/track-build-errors-action@v1
104-
if: ${{ failure() }}
105-
with:
106-
job-name: ${{ github.job }}
107-
- name: Export errors file
108-
uses: actions/upload-artifact@v2
109-
if: ${{ failure() }}
110-
with:
111-
name: errors
112-
path: job-${{ github.job }}.txt
11381
sonar_analysis:
11482
name: Static Code Analysis
11583
needs: [prerequisites]
@@ -143,17 +111,6 @@ jobs:
143111
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
144112
export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
145113
./gradlew sonarqube -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD" -PexcludeProjects='**/samples/**' -Dsonar.host.url="$SONAR_URL" -Dsonar.login="$SONAR_TOKEN" --stacktrace
146-
- name: Track error step
147-
uses: spring-projects/track-build-errors-action@v1
148-
if: ${{ failure() }}
149-
with:
150-
job-name: ${{ github.job }}
151-
- name: Export errors file
152-
uses: actions/upload-artifact@v2
153-
if: ${{ failure() }}
154-
with:
155-
name: errors
156-
path: job-${{ github.job }}.txt
157114
deploy_artifacts:
158115
name: Deploy Artifacts
159116
needs: [build_jdk_11, snapshot_tests, sonar_analysis]
@@ -181,17 +138,6 @@ jobs:
181138
OSSRH_TOKEN_PASSWORD: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
182139
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
183140
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
184-
- name: Track error step
185-
uses: spring-projects/track-build-errors-action@v1
186-
if: ${{ failure() }}
187-
with:
188-
job-name: ${{ github.job }}
189-
- name: Export errors file
190-
uses: actions/upload-artifact@v2
191-
if: ${{ failure() }}
192-
with:
193-
name: errors
194-
path: job-${{ github.job }}.txt
195141
deploy_docs:
196142
name: Deploy Docs
197143
needs: [build_jdk_11, snapshot_tests, sonar_analysis]
@@ -216,17 +162,6 @@ jobs:
216162
DOCS_USERNAME: ${{ secrets.DOCS_USERNAME }}
217163
DOCS_SSH_KEY: ${{ secrets.DOCS_SSH_KEY }}
218164
DOCS_HOST: ${{ secrets.DOCS_HOST }}
219-
- name: Track error step
220-
uses: spring-projects/track-build-errors-action@v1
221-
if: ${{ failure() }}
222-
with:
223-
job-name: ${{ github.job }}
224-
- name: Export errors file
225-
uses: actions/upload-artifact@v2
226-
if: ${{ failure() }}
227-
with:
228-
name: errors
229-
path: job-${{ github.job }}.txt
230165
deploy_schema:
231166
name: Deploy Schema
232167
needs: [build_jdk_11, snapshot_tests, sonar_analysis]
@@ -251,34 +186,16 @@ jobs:
251186
DOCS_USERNAME: ${{ secrets.DOCS_USERNAME }}
252187
DOCS_SSH_KEY: ${{ secrets.DOCS_SSH_KEY }}
253188
DOCS_HOST: ${{ secrets.DOCS_HOST }}
254-
- name: Track error step
255-
uses: spring-projects/track-build-errors-action@v1
256-
if: ${{ failure() }}
257-
with:
258-
job-name: ${{ github.job }}
259-
- name: Export errors file
260-
uses: actions/upload-artifact@v2
261-
if: ${{ failure() }}
262-
with:
263-
name: errors
264-
path: job-${{ github.job }}.txt
265189
notify_result:
266190
name: Check for failures
267191
needs: [build_jdk_11, snapshot_tests, sonar_analysis, deploy_artifacts, deploy_docs, deploy_schema]
268-
if: always()
192+
if: failure()
269193
runs-on: ubuntu-latest
270194
steps:
271-
- uses: actions/checkout@v2
272-
- name: Download errors folder
273-
uses: actions/download-artifact@v2
274-
with:
275-
name: errors
276195
- name: Send Slack message
277-
uses: spring-projects/notify-slack-errors-action@v1
196+
uses: Gamesight/slack-workflow-status@v1.0.1
278197
with:
279-
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
280-
branch-name: ${{ github.ref }}
281-
commit-sha: ${{ github.sha }}
282-
commit-owner: ${{ github.actor }}
283-
repo-name: ${{ github.repository }}
284-
run-id: ${{ github.run_id }}
198+
repo_token: ${{ secrets.GITHUB_TOKEN }}
199+
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
200+
channel: '#spring-security-ci'
201+
name: 'CI Notifier'

0 commit comments

Comments
 (0)