From 0daa950fdefc7372aed41006ffc9af92d468599c Mon Sep 17 00:00:00 2001 From: aboyko Date: Wed, 7 Jun 2023 13:53:13 -0400 Subject: [PATCH] GH-Actions buildNumber --- .github/workflows/eclipse-ls-extensions.yml | 5 ++++- eclipse-language-servers/pom.xml | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/eclipse-ls-extensions.yml b/.github/workflows/eclipse-ls-extensions.yml index 8f0e2013c..c0f0483b5 100644 --- a/.github/workflows/eclipse-ls-extensions.yml +++ b/.github/workflows/eclipse-ls-extensions.yml @@ -22,6 +22,9 @@ jobs: distribution: 'temurin' - name: Enforce https instead of http run: ./nohttp.sh + - name: Timestamp + id: timestamp + run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H:%M:%S')" - name: Build Language Servers JARs run: | cd headless-services @@ -32,4 +35,4 @@ jobs: tools_s3_secret_key: ${{ secrets.TOOLS_S3_SECRET_KEY }} run: | cd eclipse-language-servers - xvfb-run mvn --batch-mode clean deploy -Pe427 -Psnapshot -Pgitactions -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore \ No newline at end of file + xvfb-run mvn --batch-mode clean deploy -Pe427 -Psnapshot -Pgitactions -DbuildNumber=${{ steps.timestamp.outputs.timestamp }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore \ No newline at end of file diff --git a/eclipse-language-servers/pom.xml b/eclipse-language-servers/pom.xml index f991894ff..9b3ac7b44 100644 --- a/eclipse-language-servers/pom.xml +++ b/eclipse-language-servers/pom.xml @@ -138,6 +138,20 @@ + + gitactions.buildNumber + + + buildNumber + + + + CI-B${buildNumber} + true + + + + e425