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

Build without app is not possible / only with workaround #13064

Open
fhauptmann opened this issue Apr 2, 2024 · 0 comments
Open

Build without app is not possible / only with workaround #13064

fhauptmann opened this issue Apr 2, 2024 · 0 comments
Labels
finding Something to be investigated if it is a bug, a change or another issue type

Comments

@fhauptmann
Copy link
Contributor

Problem Description

When building sormas without the maven profile "with-app" the script sormas-base/dev/collect-artifacts.sh is called during the build process. This script tries to copy sormas-app build artifacts that don't exist:

mkdir -p $COLLECT_ROOT_PATH/android cp -R ../../sormas-app/app/build/outputs/apk/* $COLLECT_ROOT_PATH/android

even when the maven profile "with-app" is not activated. This makes the build fail.

Reproduction Steps

  1. initiate build of sormas-base/pom.xml with goal "install"

Build will fail with error:

Collecting SORMAS artifacts cp: cannot stat ‘../../sormas-app/app/build/outputs/apk/*’: No such file or directory Build step 'Execute shell' marked build as failure

Expected Behavior

Build is successfull without building the Android app.

Affected Area(s)

Android app

SORMAS Version

1.96.0-SNAPSHOT

Android version/Browser

Jenkins

User Role(s)

No user involved

Server URL

No response

Additional Information

As a workaround we tried to put some dummy content to sormas-app/app/build/outputs/apk/

@fhauptmann fhauptmann added the finding Something to be investigated if it is a bug, a change or another issue type label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
finding Something to be investigated if it is a bug, a change or another issue type
Projects
None yet
Development

No branches or pull requests

1 participant