You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2024/07/19 13:19:55 UTC

(logging-log4j2) branch main updated: Improve Develocity Build Scan integration

This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/main by this push:
     new e1bf1cf032 Improve Develocity Build Scan integration
e1bf1cf032 is described below

commit e1bf1cf03271755a40595925b72830dfda064cc4
Author: Jerome Prinet <jp...@gradle.com>
AuthorDate: Tue Jul 16 15:30:07 2024 +0200

    Improve Develocity Build Scan integration
---
 .github/workflows/build.yaml                       |  3 +-
 .../workflows/develocity-publish-build-scans.yaml  | 38 ++++++++++++++++++++++
 2 files changed, 40 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 7e5d2cfd6c..0db679fb09 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -33,10 +33,11 @@ jobs:
     # Temporary use `develocity` branch
     uses: apache/logging-parent/.github/workflows/build-reusable.yaml@develocity
     secrets:
-      GE_ACCESS_TOKEN: ${{ ! startsWith(github.refname, 'release/') && secrets.GE_ACCESS_TOKEN }}
+      DV_ACCESS_TOKEN: ${{ ! startsWith(github.refname, 'release/') && secrets.GE_ACCESS_TOKEN }}
     with:
       site-enabled: true
       reproducibility-check-enabled: false
+      develocity-enabled: true
 
   deploy-snapshot:
     needs: build
diff --git a/.github/workflows/develocity-publish-build-scans.yaml b/.github/workflows/develocity-publish-build-scans.yaml
new file mode 100644
index 0000000000..eb8d2b3a84
--- /dev/null
+++ b/.github/workflows/develocity-publish-build-scans.yaml
@@ -0,0 +1,38 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+name: Develocity - Publish Maven Build Scans
+
+on:
+  workflow_run:
+    workflows: [ "build" ]
+    types: [ completed ]
+
+jobs:
+
+  publish-build-scans:
+    runs-on: ubuntu-latest
+    permissions:
+      actions: write
+      pull-requests: write
+    steps:
+      - name: Setup Build Scan link capture
+        uses: gradle/develocity-actions/maven-setup@v1
+      - name: Publish Build Scans
+        uses: gradle/develocity-actions/maven-publish-build-scan@v1
+        with:
+          develocity-url: 'https://ge.apache.org'
+          develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }}