Adam Brunt
11/15/2022, 3:40 PMimage: ortussolutions/commandbox:lucee5-alpine
pipelines:
default:
- step:
name: Test
script:
- box install production=true && box server start
- box testbox run outputFile=./test-reports/junit.xml reporter=junit
and the log shows that lucee is up and running but the textbox run line comes back with:
Executing tests <http://localhost:8080/test/index.cfm?report_format=testbox.system.reports.TextReporter&recurse=true&reporter=junit&verbose=false> please wait...
ERROR (5.6.1+00618)
Error executing tests:404 Not Found
Lucee 5.3.9.160 Error (missinginclude)
Message Page /test/index.cfm [/app/test/index.cfm] not found
Mapping /
Java Stacktrace lucee.runtime.exp.MissingIncludeException: Page /test/index.cfm [/app/test/index.cfm] not found
The line runs fine when I run it inside my local docker container which is running the same code, so I can only assume there is something in box.json and/or server.json that is confusing the pipeline; for example, there is no 'app' folder in the code base (but it is the working directory in the docker container)zackster
11/15/2022, 3:55 PMPatrick
11/15/2022, 3:57 PMPatrick
11/15/2022, 3:58 PMAdam Brunt
11/15/2022, 4:08 PMPatrick
11/15/2022, 4:10 PMAdam Brunt
11/21/2022, 4:18 PMzackster
11/21/2022, 4:20 PMzackster
11/21/2022, 4:21 PMzackster
11/21/2022, 4:22 PMAdam Brunt
11/21/2022, 4:50 PMimage: atlassian/default-image:3
pipelines:
default:
- step:
name: Checkout Lucee Script-runner, Lucee and run tests
script:
- git clone <https://github.com/lucee/script-runner>
- git clone <https://github.com/lucee/lucee>
- ant -buildfile script-runner/build.xml -DluceeVersion="light-6.0.0.152-SNAPSHOT" -DexecuteScriptByInclude="true" -Dwebroot="$BITBUCKET_CLONE_DIR/lucee/test" -Dexecute="/bootstrap-tests.cfm" -DtestAdditional="$BITBUCKET_CLONE_DIR/test"
If I include the first step then it errors on the first step with a "build.xml" file doesn't exist 😞
All I want it to do is checkout my code and do the same as what going to http://localhost:8080/test/, on local machine, doeszackster
11/21/2022, 5:11 PMzackster
11/21/2022, 5:13 PM- git clone <https://github.com/lucee/lucee>
to debug it
- ls $BITBUCKET_CLONE_DIR -lR -maxdepth 2
- find -maxdepth 2 -lsAdam Brunt
11/21/2022, 5:32 PMzackster
11/21/2022, 5:35 PMzackster
11/21/2022, 5:35 PMAdam Brunt
11/21/2022, 6:01 PMzackster
11/21/2022, 6:14 PMzackster
11/21/2022, 6:15 PMcall ant
if %errorlevel% neq 0 exit /b %errorlevel%
set testLabels=orm
set testAdditional=C:\work\lucee-extensions\extension-hibernate\tests
ant -buildfile="C:\work\script-runner" -DluceeVersion="light-6.0.0.298-SNAPSHOT" -Dwebroot="C:\work\lucee6\test" -Dexecute="/bootstrap-tests.cfm" -DextensionDir="C:\work\lucee-extensions\extension-hibernate\dist" -DextensionDir="C:\work\lucee-extensions\extension-hibernate\dist"