Started by user Samih Mustafa
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building in workspace /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests
The recommended git tool is: NONE
No credentials specified
> git rev-parse --resolve-git-dir /home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/UstadMobile/ZIM2Xapi.git # timeout=10
Fetching upstream changes from https://github.com/UstadMobile/ZIM2Xapi.git
> git --version # timeout=10
> git --version # 'git version 2.43.0'
> git fetch --tags --force --progress -- https://github.com/UstadMobile/ZIM2Xapi.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Seen branch in repository origin/main
Seen branch in repository origin/shrink-xapi
Seen branch in repository origin/xapi-statements
Seen 3 remote branches
> git show-ref --tags -d # timeout=10
Checking out Revision ddfe8056a9dd9cdca15ceff3040b445bf26ea2b1 (origin/xapi-statements)
> git config core.sparsecheckout # timeout=10
> git checkout -f ddfe8056a9dd9cdca15ceff3040b445bf26ea2b1 # timeout=10
Commit message: "change exec code for cy"
> git rev-list --no-walk ddfe8056a9dd9cdca15ceff3040b445bf26ea2b1 # timeout=10
[Gradle] - Launching build.
[Zim2Xapi Cypress Tests] $ "/home/jenkins/.jenkins/workspace/Zim2Xapi Cypress Tests/gradlew" -Pktorbundleproductionjs=true clean build
> Task :app:clean
> Task :app:checkKotlinGradlePluginConfigurationErrors SKIPPED
> Task :app:processResources
> Task :app:processTestResources NO-SOURCE
> Task :app:compileKotlin
> Task :app:compileJava NO-SOURCE
> Task :app:classes
> Task :app:jar
> Task :app:startScripts
> Task :app:distTar
> Task :app:distZip
> Task :app:assemble
> Task :app:copyJarToJsTests
> Task :app:compileTestKotlin
> Task :app:compileTestJava NO-SOURCE
> Task :app:testClasses UP-TO-DATE
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
> Task :app:test
> Task :app:check
> Task :app:build
BUILD SUCCESSFUL in 9s
10 actionable tasks: 10 executed
Build step 'Invoke Gradle script' changed build result to SUCCESS
[Zim2Xapi Cypress Tests] $ /bin/sh -xe /tmp/jenkins14145878003587798982.sh
+ cd js-tests
+ npm install
up to date, audited 638 packages in 1s
74 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
+ ls -l /usr/bin/zimdump
-rwxr-xr-x 1 root root 121320 Apr 1 2024 /usr/bin/zimdump
+ ls -l e2e/temp-content
total 24
drwxrwxr-x 2 jenkins jenkins 4096 Nov 14 14:36 dropdown
drwxrwxr-x 2 jenkins jenkins 4096 Nov 14 14:36 input_number
drwxrwxr-x 2 jenkins jenkins 4096 Nov 14 14:36 matcher
drwxrwxr-x 2 jenkins jenkins 4096 Nov 14 14:36 orderer
drwxrwxr-x 2 jenkins jenkins 4096 Nov 14 14:36 radio
drwxrwxr-x 2 jenkins jenkins 4096 Nov 14 14:36 sorter
+ java -jar build/libs/zim2xapi.jar convert -zim-file e2e/content/dropdown.zim -keep-temp -output e2e/temp-content
Unexpected argument: dump, --dir=/home/jenkins/.jenkins/workspace/Zim2Xapi, Cypress, Tests/js-tests/e2e/temp-content/dropdown, /home/jenkins/.jenkins/workspace/Zim2Xapi, Cypress, Tests/js-tests/e2e/content/dropdown.zim
zimdump tool is used to inspect a zim file and also to dump its contents into the filesystem.
Usage:
zimdump list [--details] [--idx=INDEX|([--url=URL] [--ns=N])] [--] <file>
zimdump dump --dir=DIR [--ns=N] [--redirect] [--] <file>
zimdump show (--idx=INDEX|(--url=URL [--ns=N])) [--] <file>
zimdump info [--ns=N] [--] <file>
zimdump -h | --help
zimdump --version
Selectors:
--idx INDEX The index of the article to list/dump.
--url URL The url of the article to list/dump
--ns N The namespace of the article(s) to list/dump.
When used with `--url`, default to `A`.
If no `--url` is provided (for `zimdump dump`) default to no filter.
Options:
--details Show details about the articles. Else, list only the url of the article(s).
--dir=DIR Directory where to dump the article(s) content.
--redirect Use symlink to dump redirect articles. Else create html redirect file
-h, --help Show this help
--version Show zimdump version.
Return value:
0 : If no error
1 : If no (or more than 1) articles correspond to the selectors.
2 : If an error/warning has been issue during the dump.
See DIR/dump_errors.log for the listing of the errors.
java.lang.RuntimeException: Process failed with exit code 255
at com.ustadmobile.zim2xapi.ProcessBuilderUseCase.invoke(ProcessBuilderUseCase.kt:28)
at com.ustadmobile.zim2xapi.ProcessBuilderUseCase.invoke$default(ProcessBuilderUseCase.kt:5)
at com.ustadmobile.zim2xapi.ExtractZimUseCase.invoke(ExtractZimUseCase.kt:11)
at com.ustadmobile.zim2xapi.DownloadTopic.run(App.kt:161)
at com.github.ajalt.clikt.core.CoreCliktCommandKt.parse(CoreCliktCommand.kt:107)
at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:78)
at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:90)
at com.ustadmobile.zim2xapi.AppKt.main(App.kt:219)
kotlin.Unit
An error occurred: Process failed with exit code 255
Build step 'Execute shell' marked build as failure
[htmlpublisher] Archiving HTML reports...
Recording test results
[Checks API] No suitable checks publisher found.
Finished: FAILURE