Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: gradle builds [TEST] #3242

Closed

Conversation

ramonpetgrave64
Copy link
Collaborator

Test PR

Fixes the gradle builds #2727

Error:
https://github.com/ramonpetgrave64/my-example-gradle-project/actions/runs/7731834875/job/21080438734

at

mv "${PROJECT_ROOT}"/build "${GITHUB_WORKSPACE}"/

Run mv "${PROJECT_ROOT}"/build "${GITHUB_WORKSPACE}"/
mv: cannot stat '/home/runner/work/my-example-gradle-project/my-example-gradle-project/build': No such file or directory
Error: Process completed with exit code 1.

Docs may need more concrete examples. If your jar is at ./app/build/libs/app.jar, then you need to have that set as the argument to artifact-list:

Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
@ramonpetgrave64
Copy link
Collaborator Author

ramonpetgrave64 commented Feb 2, 2024

@ramonpetgrave64 ramonpetgrave64 changed the title fixe: gradle builds [TEST] fix: gradle builds [TEST] Feb 2, 2024
@@ -119,15 +119,9 @@ runs:
PROJECT_ROOT: ${{ steps.run_gradle_builder.outputs.validated_project_root }}
run: |
cd "${PROJECT_ROOT}" && "${GITHUB_WORKSPACE}"/../__TOOL_ACTION_DIR__/create_attestation.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cd "${PROJECT_ROOT}" && "${GITHUB_WORKSPACE}"/../__TOOL_ACTION_DIR__/create_attestation.sh
cd "${PROJECT_ROOT}" && "${GITHUB_WORKSPACE}"/../__TOOL_ACTION_DIR__/create_attestation.sh
mv "${PROJECT_ROOT}/slsa-build ${GITHUB_WORKSPACE}"/

move the slsa-build dir to the workspace so upload-build-dir can see slsa-build folder

@@ -38,5 +38,5 @@ do

# Move the file
bn=$(basename -- "$path_with_version")
cp "$path_with_version" release-files-for-slsa/"$bn"
cp "$path_with_version" slsa-build/"$bn"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OR just work directly from GITHUB_WORKSPACE and make sure you use PROJECT_ROOT to prefix the path

Suggested change
cp "$path_with_version" slsa-build/"$bn"
cp ${PROJECT_ROOT}/"$path_with_version" slsa-build/"$bn"

@ramonpetgrave64
Copy link
Collaborator Author

redo in #3250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants