Skip to content

Commit 11824ec

Browse files
committed
Integration fixes
1 parent 1a9f6b4 commit 11824ec

File tree

5 files changed

+36
-20
lines changed

5 files changed

+36
-20
lines changed

.github/actions/build-and-test/action.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ runs:
3131
- name: Stage crypto
3232
shell: bash
3333
run: |
34-
./set_cypto ${{ inputs.crypto-type }}
34+
./set_crypto ${{ inputs.crypto-type }}
3535
3636
- name: Build
3737
shell: bash
38-
run: mvn clean install -P ${{ inputs.crypto-type }}
38+
run: mvn clean install
3939

4040
- name: Run EE server
4141
if: ${{ inputs.run-tests == 'true' }}

.github/actions/fast-forward-merge/action.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: "Fast forward merge"
22
description: Fast forward target branch to given commit hash
33

44
inputs:
5-
ref_to_merge:
5+
ref-to-merge:
66
description: Branch to merge into base
77
required: true
8-
base_branch:
8+
base-branch:
99
description: Base branch
1010
required: true
1111
git-bot-token:
@@ -20,16 +20,17 @@ runs:
2020
with:
2121
# Fetch the whole history to prevent unrelated history errors
2222
fetch-depth: "0"
23-
ref: ${{ inputs.base_branch }}
23+
ref: ${{ inputs.base-branch }}
2424
token: ${{ inputs.git-bot-token }}
2525

2626
- name: Debug stuff
2727
shell: bash
2828
run: |
2929
git remote -vvv
30+
3031
- name: Fast forward
3132
shell: bash
32-
run: git merge --ff-only ${{ inputs.ref_to_merge }}
33+
run: git merge --ff-only ${{ inputs.ref-to-merge }}
3334

3435
- name: Upload changes to remote head branch
3536
shell: bash

.github/actions/publish-to-jfrog/action.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ runs:
4747
shell: bash
4848
working-directory: client
4949
run: |
50-
jf mvn-config --repo-deploy-releases=${{ inputs.jfrog-releases-repo-name }} --repo-deploy-snapshots=${{ inputs.jfrog-snapshots-repo-name }}
51-
jf mvn source:jar javadoc:jar deploy -Dusername=${{ steps.setup-jfrog-cli.outputs.oidc-user }} ${{ steps.setup-jfrog-cli.outputs.oidc-token }}
50+
jf mvn-config --repo-deploy-releases=${{ inputs.jfrog-releases-repo-name }} --repo-deploy-snapshots=${{ inputs.jfrog-snapshots-repo-name }} && \
51+
jf mvn source:jar javadoc:jar deploy -Dusername=${{ steps.setup-jfrog-cli.outputs.oidc-user }} ${{ steps.setup-jfrog-cli.outputs.oidc-token }} && \
52+
jf rt bce && \
53+
jf rt bag && \
5254
jf rt bp

.github/workflows/promote-to-stage.yaml

+15-3
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,26 @@ jobs:
2020
env:
2121
JF_URL: ${{ vars.JFROG_PLATFORM_URL }}
2222
with:
23-
oidc-provider-name: ${{ inputs.oidc-provider }}
24-
oidc-audience: ${{ inputs.oidc-audience }}
23+
oidc-provider-name: ${{ secrets.JFROG_OIDC_PROVIDER }}
24+
oidc-audience: ${{ secrets.JFROG_OIDC_AUDIENCE }}
2525

2626
- name: Get info
2727
id: get-build-info
2828
run: |
2929
echo build-info=$(jf rt curl /api/build/clients-java-push-to-dev/${{ inputs.build-number }}) >> $GITHUB_OUTPUT
3030
31+
- name: Get commit hash from repo
32+
id: get-commit-hash
33+
run: |
34+
echo commit-hash=$(echo '${{ steps.get-build-info.outputs.build-info }}' | jq -r '.buildInfo.vcs[].revision') >> $GITHUB_OUTPUT
35+
36+
- name: Get build name
37+
id: get-build-name
38+
run: |
39+
echo build-name=$(echo '${{ steps.get-build-info.outputs.build-info }}' | jq -r '.buildInfo.name') >> $GITHUB_OUTPUT
40+
3141
- name: Debug
3242
run: |
33-
echo ${{ steps.get-build-info.outputs.build-info }}
43+
echo "commit-hash: ${{ steps.get-commit-hash.outputs.commit-hash }}" && \
44+
echo "build-name: ${{ steps.get-build-name.outputs.build-name }}" && \
45+
echo "build-info: ${{ steps.get-build-info.outputs.build-info }}"

.github/workflows/promote.yaml

+10-9
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
env:
2626
JF_URL: ${{ vars.JFROG_PLATFORM_URL }}
2727
with:
28-
oidc-provider-name: ${{ inputs.oidc-provider }}
29-
oidc-audience: ${{ inputs.oidc-audience }}
28+
oidc-provider-name: ${{ secrets.JFROG_OIDC_PROVIDER }}
29+
oidc-audience: ${{ inputs.JFROG_OIDC_AUDIENCE }}
3030

3131
- name: Get info
3232
id: get-build-info
@@ -36,25 +36,26 @@ jobs:
3636
- name: Get commit hash from repo
3737
id: get-commit-hash
3838
run: |
39-
echo commit-hash=$(steps.get-build-info.outputs.build-info | jq -r '.vcs[].revision') >> $GITHUB_OUTPUT
39+
echo commit-hash=$(echo '${{ steps.get-build-info.outputs.build-info }}' | jq -r '.buildInfo.vcs[].revision') >> $GITHUB_OUTPUT
4040
41-
- name: Get commit hash from repo
41+
- name: Get build name
4242
id: get-build-name
4343
run: |
44-
echo build-name=$(steps.get-build-info.outputs.build-info | jq -r '.name') >> $GITHUB_OUTPUT
44+
echo build-name=$(echo '${{ steps.get-build-info.outputs.build-info }}' | jq -r '.buildInfo.name') >> $GITHUB_OUTPUT
4545
4646
- name: Debug
4747
run: |
48-
echo ${{ steps.get-build-info.outputs.build-info }}
49-
echo ${{ steps.get-build-info.outputs.build-name }}
48+
echo "commit-hash: ${{ steps.get-commit-hash.outputs.commit-hash }}" && \
49+
echo "build-name: ${{ steps.get-build-name.outputs.build-name }}" && \
50+
echo "build-info: ${{ steps.get-build-info.outputs.build-info }}"
5051
5152
- name: Merge commit hash from source to target branch
5253
uses: ./github/actions/fast-forward-merge
5354
with:
54-
ref-to-merge: ${{ steps.get-build-info.outputs.build-info }}
55+
ref-to-merge: ${{ steps.get-commit-hash.outputs.commit-hash }}
5556
base-branch: ${{ inputs.target-branch }}
5657
git-bot-token: ${{ secrets.CLIENT_BOT_PAT }}
5758

5859
- name: Promote build
5960
run: |
60-
jf rt build-promote ${{ steps.get-build-info.outputs.build-name }} ${{ inputs.build-number }} ${{ inputs.target-repository }}
61+
jf rt build-promote ${{ steps.get-build-name.outputs.build-name }} ${{ inputs.build-number }} ${{ inputs.target-repository }}

0 commit comments

Comments
 (0)