on 03-10-2022 11:07 AM
Hi experts,
In a trial environment, we are using SAP Continuous Integration and Delivery to deploy our CAP app and a large number of job runs end up with an Unexpected error in the build phase.
Approximately, out of 10 executions, 7 end in error in the build phase and without detailing any error.
Usually, the termination happens in the phases "--- Begin library step of: pipelineStashFilesAfterBuild ---" and "--- Begin library step of: testsPublishResults ---", the last messages being usually "Stash content: sonar (include: **/jacoco*.exec, **/sonar-project.properties, exclude: , useDefaultExcludes: true)" and "Recording test results" respectively.
Here is an example of the end of the log file:
...
[2022-03-09T17:17:49.232Z] info mtaBuild - [2022-03-09 17:17:47] INFO the build results of the "sfc_ui_deployer" module will be packaged and saved in the "/home/jenkins/agent/workspace/AnyBranch_to_TrialMarc/.AnyBranch_to_TrialMarc_mta_build_tmp/sfc_ui_deployer" folder
[2022-03-09T17:17:49.243Z] info mtaBuild - [2022-03-09 17:17:48] INFO finished building the "sfc_ui_deployer" module
[2022-03-09T17:17:49.253Z] info mtaBuild - [2022-03-09 17:17:48] INFO running the "after-all" build...
[2022-03-09T17:17:49.269Z] info mtaBuild - [2022-03-09 17:17:48] INFO generating the metadata...
[2022-03-09T17:17:49.279Z] info mtaBuild - [2022-03-09 17:17:48] INFO generating the "/home/jenkins/agent/workspace/AnyBranch_to_TrialMarc/.AnyBranch_to_TrialMarc_mta_build_tmp/META-INF/mtad.yaml" file...
[2022-03-09T17:17:49.328Z] info mtaBuild - [2022-03-09 17:17:48] INFO generating the MTA archive...
[2022-03-09T17:17:51.229Z] info mtaBuild - [2022-03-09 17:17:50] INFO the MTA archive generated at: /home/jenkins/agent/workspace/AnyBranch_to_TrialMarc/sfc.mtar
[2022-03-09T17:17:51.240Z] info mtaBuild - [2022-03-09 17:17:50] INFO cleaning temporary files...
[2022-03-09T17:17:51.251Z] info mtaBuild - Printing stepName mtaBuild
[2022-03-09T17:17:51.263Z] info mtaBuild - Ignoring custom defaults from pipeline config
[2022-03-09T17:17:51.273Z] info mtaBuild - build settings infomration successfully created with '{"mtaBuild":[{"dockerImage":"devxci/mbtci-java11-node14@sha256:250d16c3a925bb320b6e16255257f872b6a9788e622a0534204410987ff5f1a8"}]}
[2022-03-09T17:17:51.285Z] info mtaBuild - no publish detected, skipping upload of mtar artifact
[2022-03-09T17:17:51.296Z] info mtaBuild - SUCCESS
[2022-03-09T17:17:52.359Z] + ./piper readPipelineEnv
[2022-03-09T17:17:52.376Z] time="2022-03-09T17:17:52Z" level=warning msg="Could not read env variable BUILD_URL using fallback value n/a" library=SAP/jenkins-library
[2022-03-09T17:17:52.574Z] Transfer Influx data
[2022-03-09T17:17:52.792Z] Warning: overwriting stash ‘pipelineStepReports’
[2022-03-09T17:17:52.812Z] Stashed 0 file(s)
[2022-03-09T17:25:53.177Z] Stashed 535127 file(s)
[2022-03-09T17:27:35.335Z] invalidate stash container-205c7087-882c-461a-98c2-28fe80fba6d8
[2022-03-09T17:27:35.423Z] Warning: overwriting stash ‘container-205c7087-882c-461a-98c2-28fe80fba6d8’
[2022-03-09T17:27:47.166Z] Stashed 0 file(s)
[2022-03-09T17:27:47.269Z] --- End library step of: dockerExecuteOnKubernetes ---
[2022-03-09T17:27:47.335Z] --- End library step of: dockerExecute ---
[2022-03-09T17:27:47.458Z] --- End library step of: mtaBuild ---
[2022-03-09T17:27:47.513Z] --- End library step of: buildExecute ---
[2022-03-09T17:27:48.371Z] --- Begin library step of: pipelineStashFilesAfterBuild ---
[2022-03-09T17:27:48.599Z] [pipelineStashFilesAfterBuild] Sending telemetry data is disabled.
[2022-03-09T17:27:48.658Z] Stash content: buildResult (include: **/target/*.war, **/target/*.jar, **/*.mtar, **/*.jar.original, exclude: , useDefaultExcludes: true)
[2022-03-09T17:28:04.341Z] Stashed 1 file(s)
[2022-03-09T17:28:04.429Z] Stash content: checkmarx (include: **/*.js, **/*.scala, **/*.py, **/*.go, **/*.d, **/*.di, **/*.xml, **/*.html, exclude: **/*.mockserver.js, node_modules/**/*.js, useDefaultExcludes: true)
[2022-03-09T17:31:56.758Z] Stashed 289735 file(s)
[2022-03-09T17:31:57.347Z] Stash content: classFiles (include: **/target/classes/**/*.class, **/target/test-classes/**/*.class, exclude: , useDefaultExcludes: true)
[2022-03-09T17:32:07.437Z] [pipelineStashFilesAfterBuild] no files detected for stash 'classFiles': classFiles (No files included in stash ‘classFiles’)
[2022-03-09T17:32:07.506Z] Stash content: sonar (include: **/jacoco*.exec, **/sonar-project.properties, exclude: , useDefaultExcludes: true)
[2022-03-09T17:32:18.100Z] Stashed 2 file(s)
[2022-03-09T17:32:18.184Z] --- End library step of: pipelineStashFilesAfterBuild ---
[2022-03-09T17:32:18.875Z] --- Begin library step of: testsPublishResults ---
[2022-03-09T17:32:19.267Z] [testsPublishResults] Sending telemetry data is disabled.
[2022-03-09T17:32:19.333Z] [testsPublishResults] update test results
[2022-03-09T17:32:19.671Z] + find . -wholename '**/TEST-*.xml' -exec touch '{}' ';'
[2022-03-09T17:32:26.374Z] Recording test results
Our job configuration:
Thanks in advance.
Best regards,
Marc
In case anyone is interested in this topic, the problem was a lack of memory in the CI/CD service and it was solved by Thorsten Duda and his colleagues. Thanks Thorsten for your support.
Best regards,
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.