Skip to content

Commit a9d6068

Browse files
jprinetppkarwasz
authored andcommitted
Improve Develocity Build Scan integration
1 parent 3683a95 commit a9d6068

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

.github/workflows/build.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ jobs:
3333
# Temporary use `develocity` branch
3434
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@develocity
3535
secrets:
36-
GE_ACCESS_TOKEN: ${{ ! startsWith(github.refname, 'release/') && secrets.GE_ACCESS_TOKEN }}
36+
DV_ACCESS_TOKEN: ${{ ! startsWith(github.refname, 'release/') && secrets.GE_ACCESS_TOKEN }}
3737
with:
3838
java-version: |
3939
8
4040
17
4141
site-enabled: true
4242
reproducibility-check-enabled: false
43+
develocity-enabled: true
4344

4445
deploy-snapshot:
4546
needs: build

.github/workflows/deploy-site.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ jobs:
5757
# Secrets for committing the generated site
5858
secrets:
5959
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
60-
GE_ACCESS_TOKEN: ${{ secrets.GE_ACCESS_TOKEN }}
6160
# Write permissions for committing the generated site
6261
permissions:
6362
contents: write
@@ -88,7 +87,6 @@ jobs:
8887
# Secrets for committing the generated site
8988
secrets:
9089
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
91-
GE_ACCESS_TOKEN: ${{ secrets.GE_ACCESS_TOKEN }}
9290
# Write permissions for committing the generated site
9391
permissions:
9492
contents: write
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to you under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
name: Develocity - Publish Maven Build Scans
18+
19+
on:
20+
workflow_run:
21+
workflows: [ "build" ]
22+
types: [ completed ]
23+
24+
jobs:
25+
26+
publish-build-scans:
27+
runs-on: ubuntu-latest
28+
permissions:
29+
actions: write
30+
pull-requests: write
31+
steps:
32+
- name: Setup Build Scan link capture
33+
uses: gradle/develocity-actions/maven-setup@v1
34+
- name: Publish Build Scans
35+
uses: gradle/develocity-actions/maven-publish-build-scan@v1
36+
with:
37+
develocity-url: 'https://ge.apache.org'
38+
develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)