cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Continuous Integration and Delivery - Build terminates with Unexpected

marcmaurí
Participant
0 Kudos

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:

  • Pipeline: SAP Cloud Application Programming Model
  • Configuration Mode: Job Editor
  • Build Tool: mta
  • Build Tool Version: Java 11 Node 14
  • Maven Static Code Checks: off
  • Lint Check: off
  • Addition Unit Tests: off
  • Acceptance: off
  • Deploy to Cloud Foundry Space: on
  • Upload to Cloud Transport Management: off

Thanks in advance.

Best regards,

Marc

thorsten_duda
Explorer

Hello Marc,

thank you for trying out our service.

Could you please provide me the full log of the build (button right upper corner).

Thanks and best regards,

Thorsten

Accepted Solutions (1)

Accepted Solutions (1)

marcmaurí
Participant
0 Kudos

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

Answers (0)