Gradle build failed in Tekton CI/CD #997
Unanswered
anandjaisy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have below pipeline task for Gradle build, which clones the project from the bitbucket repo and tries to build the application.
I have the below project structure
The
settings.gradle
contain the below projectswhen running the pipeline with below code
Getting an exception as
FAILURE: Build failed with an exception.
I have used the task from the Tekton catalog https://github.com/tektoncd/catalog/blob/main/task/gradle/0.1/gradle.yaml
If I pass the
PROJECT_DIR
value as./discount-api
to the Gradle task. I get an exception assettings.gradle
not found. which is correct because that project has no setting.gradle file.The main project is
discount-api
. I need to build the application. Quite not sure what is wrong. On the local env if I do ./gradlew build in the root directory the application successfully builds.Beta Was this translation helpful? Give feedback.
All reactions