I am trying to set up a CI/CD pipeline in Gitlab
I am getting:
Execution failed for task ':billing-web:buildScssThemes'.
> java.io.FileNotFoundException: Unable to find SCSS themes root directory /builds/gen-x/billing/modules/web/themes
When running script:
./gradlew clean assemble
Here is the full log:
e[0KRunning with gitlab-runner 15.3.0 (bbcb5aba)e[0;m
e[0K on 7f5064f6eb4e x3Zk5Keze[0;m
section_start:1663895877:prepare_executor
e[0Ke[0Ke[36;1mPreparing the “docker” executore[0;me[0;m
e[0KUsing Docker executor with image gradle:5.6.4-jdk11 …e[0;m
e[0KPulling docker image gradle:5.6.4-jdk11 …e[0;m
e[0KUsing docker image sha256:ae10e1a51333bca902c467ef111281536c7a315b051066e6072245a2d22fd95b for gradle:5.6.4-jdk11 with digest gradle@sha256:0b4c60a9e861a51c626bf23cbd0af903dc862ee7028a16bf174279332e3721ed …e[0;m
section_end:1663895882:prepare_executor
e[0Ksection_start:1663895882:prepare_script
e[0Ke[0Ke[36;1mPreparing environmente[0;me[0;m
Running on runner-x3zk5kez-project-8-concurrent-0 via 7f5064f6eb4e…
section_end:1663895882:prepare_script
e[0Ksection_start:1663895882:get_sources
e[0Ke[0Ke[36;1mGetting source from Git repositorye[0;me[0;m
e[32;1mFetching changes with git depth set to 20…e[0;m
Reinitialized existing Git repository in /builds/gen-x/billing/.git/
e[32;1mChecking out 7516212c as dev…e[0;m
Removing .gradle/
Removing deploy/
Removing modules/core/build/
Removing modules/global/build/
e[32;1mSkipping Git submodules setupe[0;m
section_end:1663895883:get_sources
e[0Ksection_start:1663895883:step_script
e[0Ke[0Ke[36;1mExecuting “step_script” stage of the job scripte[0;me[0;m
e[0KUsing docker image sha256:ae10e1a51333bca902c467ef111281536c7a315b051066e6072245a2d22fd95b for gradle:5.6.4-jdk11 with digest gradle@sha256:0b4c60a9e861a51c626bf23cbd0af903dc862ee7028a16bf174279332e3721ed …e[0;m
e[32;1m$ chmod +x gradlewe[0;m
e[32;1m$ ./gradlew clean assemblee[0;m
Downloading https://services.gradle.org/distributions/gradle-5.6.4-bin.zip
…
Welcome to Gradle 5.6.4!
Here are the highlights of this release:
- Incremental Groovy compilation
- Groovy compile avoidance
- Test fixtures for Java projects
- Manage plugin versions via settings script
For more details see Gradle 5.6.4 Release Notes
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/root/.gradle/wrapper/dists/gradle-5.6.4-bin/bxirm19lnfz6nurbatndyydux/gradle-5.6.4/lib/groovy-all-1.3-2.5.4.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Task :billing-core:clean UP-TO-DATE
Task :billing-global:clean UP-TO-DATE
Task :billing-web:clean UP-TO-DATE
Task :billing-core:assembleDbScripts
Task :billing-core:dbScriptsArchive
Task :billing-core:beansXml
Task :billing-global:beansXml
Task :billing-global:processResources
Task :billing-global:buildInfo
Task :billing-global:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Task :billing-global:classes
Task :billing-global:jar
Task :billing-core:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Task :billing-core:processResources
Task :billing-core:classes
Task :billing-core:jar
Task :billing-core:sourceJar
Task :billing-core:assemble
Task :billing-global:sourceJar
Task :billing-global:assemble
Task :billing-web:buildScssThemes FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:billing-web:buildScssThemes’.
java.io.FileNotFoundException: Unable to find SCSS themes root directory /builds/gen-x/billing/modules/web/themes
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
BUILD FAILED in 3m 11s
See Command-Line Interface
17 actionable tasks: 14 executed, 3 up-to-date
section_end:1663896076:step_script
e[0Ksection_start:1663896076:cleanup_file_variables
e[0Ke[0Ke[36;1mCleaning up project directory and file based variablese[0;me[0;m
section_end:1663896076:cleanup_file_variables
e[0Ke[31;1mERROR: Job failed: exit code 1
e[0;m