Started by user Ugandar Jangiti - Contractor
[JTE] Obtained Pipeline Configuration File
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-template-engine.git
[JTE] -- file path: pipeline/pipeline_config.groovy
[JTE] Pipeline Configuration Modifications
[JTE] Configurations Added:
[JTE] - jte.allow_scm_jenkinsfile set to false
[JTE] - libraries.build_environment.region set to us-west-2
[JTE] - libraries.build_environment.account set to 382209070917
[JTE] - libraries.build_environment.secret set to legacy_prod_aws
[JTE] - libraries.build_environment.repoPrefix set to jenkins-build-environment/pipelines
[JTE] - libraries.build_environment.nestedDockerEnabled set to true
[JTE] - libraries.build_environment.sharedNetworkEnabled set to false
[JTE] - libraries.build_environment.dockerfilePath set to
[JTE] - libraries.fortify.url set to https://api.ams.fortify.com
[JTE] - libraries.fortify.apiKey set to ed937c44-742b-4cee-918a-db220da9bf89
[JTE] - libraries.fortify.apiSecretId set to FoD_api_key_secret
[JTE] - libraries.sonatype.failBuildOnNetworkError set to false
[JTE] - libraries.sonatype.enableDebugLogging set to false
[JTE] - libraries.datadog_api.uri set to https://api.datadoghq.com/api/v2
[JTE] - libraries.datadog_api.appKey set to FORTIFY_APP_KEY_KPI_DEVOPS
[JTE] - libraries.datadog_api.apiKey set to FORTIFY_API_KEY_KPI_DEVOPS
[JTE] - libraries.jira.domain set to https://rehrig.atlassian.net
[JTE] - libraries.jira.credentialsId set to jira-api-token-prod
[JTE] - libraries.jira.startTimeField set to customfield_10831
[JTE] - libraries.jira.endTimeField set to customfield_10832
[JTE] - libraries.teams.webhookUrl set to
[JTE] - libraries.pipeline_utils.additionalRepos set to []
[JTE] - libraries.pipeline_utils.codequalityAppName set to
[JTE] - application_environments.dev.short_name set to Dev
[JTE] - application_environments.dev.long_name set to Development
[JTE] - application_environments.qa.short_name set to QA
[JTE] - application_environments.qa.long_name set to Quality assurance
[JTE] - application_environments.staging.short_name set to Staging
[JTE] - application_environments.staging.long_name set to Staging
[JTE] - application_environments.prod.short_name set to Prod
[JTE] - application_environments.prod.long_name set to Production
[JTE] - keywords.pre_stage_build_enabled set to false
[JTE] - keywords.application_name set to
[JTE] - keywords.service set to
[JTE] - keywords.dev_leads set to
[JTE] - keywords.qa_leads set to
[JTE] - keywords.devops_team set to ITES-DEVOPS
[JTE] - keywords.approval_timeout.time set to 7
[JTE] - keywords.approval_timeout.unit set to DAYS
[JTE] - keywords.pull_request set to ^PR-[0-9]{1,}$
[JTE] - keywords.bitbucket_merge_message set to Merged in .*?(?=\s\(pull request) \(pull request #[0-9]{1,}\)
[JTE] - keywords.feature set to ^[Ff]eature/[0-9a-zA-Z]{1,}(.*)
[JTE] - keywords.master set to ^([Mm]aster|[Mm]ain)$
[JTE] - keywords.develop set to ^[Dd]evelop(ment|)$
[JTE] - keywords.hotfix set to ^[Hh]otfix/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
[JTE] - keywords.release set to ^[Rr]elease/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
[JTE] - keywords.approved_staging_bypass set to [VOR DevOps Pipelines/Edge/*, VOR DevOps Pipelines/Cloud/inference-cloud-service, VOR DevOps Pipelines/Cloud/instore-delivery, VOR DevOps Pipelines/Cloud/vor-cloud-data-sync-up]
[JTE] - keywords.fortify_enabled set to true
[JTE] - keywords.sonatype_enabled set to true
[JTE] Configurations Deleted: None
[JTE] Configurations Changed: None
[JTE] Configurations Duplicated: None
[JTE] Configurations Ignored: None
[JTE] Subsequent May Merge:
[JTE] - libraries
[JTE] - libraries.build_environment
[JTE] - libraries.fortify
[JTE] - libraries.sonatype
[JTE] - application_environments
[JTE] - application_environments.dev
[JTE] - application_environments.qa
[JTE] - application_environments.staging
[JTE] - application_environments.prod
[JTE] - keywords
[JTE] Subsequent May Override:
[JTE] - libraries.build_environment.nestedDockerEnabled
[JTE] - libraries.build_environment.sharedNetworkEnabled
[JTE] - libraries.build_environment.dockerfilePath
[JTE] - libraries.sonatype.failBuildOnNetworkError
[JTE] - libraries.sonatype.enableDebugLogging
[JTE] - libraries.teams.webhookUrl
[JTE] - libraries.pipeline_utils.additionalRepos
[JTE] - libraries.pipeline_utils.codequalityAppName
[JTE] - keywords.pre_stage_build_enabled
[JTE] - keywords.application_name
[JTE] - keywords.service
[JTE] - keywords.dev_leads
[JTE] - keywords.qa_leads
[JTE] Obtained Template Configuration File
[JTE] -- scm: git https://bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git
[JTE] -- file path: pipeline_config.groovy
[JTE] Pipeline Configuration Modifications
[JTE] Configurations Added:
[JTE] - libraries.build_environment.os set to linux
[JTE] - libraries.build_environment.arch set to x86
[JTE] - libraries.fortify.app set to devops-poc-jenkins-example-app
[JTE] - libraries.fortify.technologyStack set to PYTHON
[JTE] - libraries.fortify.languageLevel set to 3
[JTE] - libraries.sonatype.iqApplication set to devops-poc-jenkins-example-app
[JTE] - libraries.sonatype.iqScanPatterns set to [
[JTE] "**/requirements/*.txt",
[JTE] "**/requirements.txt"
[JTE] ]
[JTE] - libraries.custom_build set to [:]
[JTE] - libraries.custom_test set to [:]
[JTE] - libraries.s3_deploy.source set to build/**
[JTE] - libraries.s3_deploy.target set to bucket_folder/
[JTE] - libraries.s3_deploy.exclude set to **/ignorable.txt
[JTE] - libraries.shell_pre_stage_build.script set to jenkins/scripts/pre_stage_build.sh
[JTE] - application_environments.dev.s3_deploy.credentials set to legacy_prod_aws
[JTE] - application_environments.dev.s3_deploy.region set to us-west-2
[JTE] - application_environments.dev.s3_deploy.bucket set to devops-testing-jenkins-bucket
[JTE] - application_environments.qa.s3_deploy.credentials set to legacy_prod_aws
[JTE] - application_environments.qa.s3_deploy.region set to us-west-2
[JTE] - application_environments.qa.s3_deploy.bucket set to devops-testing-jenkins-bucket
[JTE] - application_environments.staging.s3_deploy.credentials set to legacy_prod_aws
[JTE] - application_environments.staging.s3_deploy.region set to us-west-2
[JTE] - application_environments.staging.s3_deploy.bucket set to devops-testing-jenkins-bucket
[JTE] - application_environments.prod.s3_deploy.credentials set to legacy_prod_aws
[JTE] - application_environments.prod.s3_deploy.region set to us-west-2
[JTE] - application_environments.prod.s3_deploy.bucket set to devops-testing-jenkins-bucket
[JTE] - application_environments.test.s3_deploy.credentials set to legacy_prod_aws
[JTE] - application_environments.test.s3_deploy.region set to us-west-2
[JTE] - application_environments.test.s3_deploy.bucket set to devops-testing-jenkins-bucket
[JTE] Configurations Deleted: None
[JTE] Configurations Changed:
[JTE] - libraries.build_environment.dockerfilePath changed from to jenkins/build_env
[JTE] - libraries.pipeline_utils.codequalityAppName changed from to devops-poc-jenkins-example-app
[JTE] - keywords.application_name changed from to ExampleApplication
[JTE] - keywords.service changed from to Web
[JTE] - keywords.dev_leads changed from to josephmelendez@rehrig.com,akathasagaram@rehrig.com,kkumar@rehrig.com,hkeshwani@rehrig.com,ujangiti@rehrig.com
[JTE] - keywords.qa_leads changed from to josephmelendez@rehrig.com,akathasagaram@rehrig.com,kkumar@rehrig.com,hkeshwani@rehrig.com,ujangiti@rehrig.com
[JTE] Configurations Duplicated: None
[JTE] Configurations Ignored: None
[JTE] Subsequent May Merge: None
[JTE] Subsequent May Override: None
[JTE] Obtained Repository Jenkinsfile
[JTE] -- scm: git https://bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git
[JTE] -- file path: Jenkinsfile
[JTE] Obtained Template
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-template-engine.git
[JTE] -- file path: pipeline/Jenkinsfile
[JTE] Loading Library build_environment
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-template-engine.git
[JTE] Loading Library fortify
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-template-engine.git
[JTE] Loading Library sonatype
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-template-engine.git
[JTE] Loading Library datadog_api
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-template-engine.git
[JTE] Loading Library jira
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-template-engine.git
[JTE] Loading Library teams
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-template-engine.git
[JTE] Loading Library pipeline_utils
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-template-engine.git
[JTE] Loading Library custom_build
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git
[JTE] Loading Library custom_test
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git
[JTE] Loading Library s3_deploy
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-template-engine.git
[JTE] Loading Library shell_pre_stage_build
[JTE] -- scm: git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-template-engine.git
[Pipeline] Start of Pipeline
[JTE][@Validate - build_environment/initialize_build_env_internal_config.call]
[JTE][Step - build_environment/set_cred.call()]
[JTE][Step - build_environment/set_url.call()]
[JTE][Step - build_environment/get_docker_flags.call()]
[JTE][@Validate - fortify/initialize_fortify_internal_config.call]
[JTE][@Validate - sonatype/initialize_sonatype_internal_config.call]
[JTE][Step - build_environment/set_os.call()]
[JTE][Step - build_environment/set_arch.call()]
[JTE][Step - pipeline_utils/triggered_by.call(String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[Pipeline] withEnv
[Pipeline] {
[Pipeline] datadog
[Datadog] Logging is already enabled globally, you do not need to specify 'collectLogs: true'
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Source Control)
[Pipeline] node
Running on EC2 (devops-ec2) - ubuntu-x86 (i-0cb4e53bdeb2eb9bc) in /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] {
[Pipeline] checkout
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential svc-bitbucket-cloud
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git
> /usr/bin/git init /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108 # timeout=10
Fetching upstream changes from https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git
> /usr/bin/git --version # timeout=10
> git --version # 'git version 2.34.1'
using GIT_ASKPASS to set credentials Service account credentials for Bitbucket Cloud access
> /usr/bin/git fetch --no-tags --force --progress -- https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git +refs/heads/feature/ESD-149_Integrating-Code-Coverage:refs/remotes/origin/feature/ESD-149_Integrating-Code-Coverage # timeout=10
Avoid second fetch
Checking out Revision 64c6447de250d6ab9b9de170ac5ae5a9d491eff0 (PR-108)
Commit message: "Adding metric visualizations to the pipeline"
> /usr/bin/git config remote.origin.url https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git # timeout=10
> /usr/bin/git config --add remote.origin.fetch +refs/heads/feature/ESD-149_Integrating-Code-Coverage:refs/remotes/origin/feature/ESD-149_Integrating-Code-Coverage # timeout=10
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 64c6447de250d6ab9b9de170ac5ae5a9d491eff0 # timeout=10
> /usr/bin/git rev-list --no-walk 64c6447de250d6ab9b9de170ac5ae5a9d491eff0 # timeout=10
[Bitbucket] Notifying pull request build result
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential svc-bitbucket-cloud
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential svc-bitbucket-cloud
[GitCheckoutListener] Recording commits of 'git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git'
[GitCheckoutListener] Found previous build 'Example DevOps Pipelines/jenkins-example-linux-x86-app/PR-108 #36' that contains recorded Git commits
[GitCheckoutListener] -> Starting recording of new commits since '64c6447'
[GitCheckoutListener] -> Single parent commit found - branch is already descendant of target branch head
[GitCheckoutListener] -> Using head commit '64c6447' as starting point
[GitCheckoutListener] -> No new commits found
[GitCheckoutListener] -> Git commit decorator successfully obtained 'hudson.plugins.git.browser.BitbucketWeb@74630c9b' to render commit links
[Pipeline] withEnv
[Pipeline] {
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is disabled by the job configuration...
[WS-CLEANUP] done
[JTE][Step - pipeline_utils/checkout_scm.call()]
[Pipeline] checkout
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential svc-bitbucket-cloud
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
> /usr/bin/git rev-parse HEAD^{commit} # timeout=10
Cloning repository https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git
> /usr/bin/git init /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108 # timeout=10
Fetching upstream changes from https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git
> /usr/bin/git --version # timeout=10
> git --version # 'git version 2.34.1'
using GIT_ASKPASS to set credentials Service account credentials for Bitbucket Cloud access
> /usr/bin/git fetch --no-tags --force --progress -- https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git +refs/heads/feature/ESD-149_Integrating-Code-Coverage:refs/remotes/origin/feature/ESD-149_Integrating-Code-Coverage # timeout=10
Avoid second fetch
Checking out Revision 64c6447de250d6ab9b9de170ac5ae5a9d491eff0 (PR-108)
Commit message: "Adding metric visualizations to the pipeline"
[GitCheckoutListener] Skipping recording, since SCM 'git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git' already has been processed
[Pipeline] stash
> /usr/bin/git config remote.origin.url https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git # timeout=10
> /usr/bin/git config --add remote.origin.fetch +refs/heads/feature/ESD-149_Integrating-Code-Coverage:refs/remotes/origin/feature/ESD-149_Integrating-Code-Coverage # timeout=10
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 64c6447de250d6ab9b9de170ac5ae5a9d491eff0 # timeout=10
Stashed 25 file(s) to https://rpc-jenkins-stashed-artifacts.s3.us-west-2.amazonaws.com/Example%20DevOps%20Pipelines/jenkins-example-linux-x86-app/PR-108/37/stashes/source.tgz
[Pipeline] script
[Pipeline] {
[JTE][Step - pipeline_utils/get_scm_variable.call(String)]
[JTE][Step - pipeline_utils/run_sh.call(LinkedHashMap)]
[Pipeline] sh
+ git log --format=format:%ce -1 64c6447de250d6ab9b9de170ac5ae5a9d491eff0
[Pipeline] echo
Committer email: ujangiti@rehrig.com
[JTE][Step - pipeline_utils/get_merged_branch.call()]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/set_branch_and_trigger_variables.call()]
[JTE][Step - pipeline_utils/triggered_by.call(String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/triggered_by.call(String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Validation)
[Pipeline] script
[Pipeline] {
[JTE][Step - pipeline_utils/print_build_details.call()]
[Pipeline] echo
Trigger: pull request, Source: feature/ESD-149_Integrating-Code-Coverage, Target: develop
[JTE][Step - pipeline_utils/validate_build_details.call()]
[JTE][Step - pipeline_utils/triggered_by.call(String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/triggered_by.call(String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/on_merge.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/on_merge.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/on_pull_request.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/on_pull_request.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Jira Ticket)
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
Stage "Jira Ticket" skipped due to when conditional
[Pipeline] getContext
[Pipeline] stage
[Pipeline] { (Input Ticket)
Stage "Jira Ticket" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Get Ticket)
Stage "Jira Ticket" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build Environment)
[Pipeline] node
Running on EC2 (devops-ec2) - ubuntu-x86 (i-0cb4e53bdeb2eb9bc) in /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] {
[Pipeline] checkout
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential svc-bitbucket-cloud
Fetching changes from the remote Git repository
Fetching without tags
Checking out Revision 64c6447de250d6ab9b9de170ac5ae5a9d491eff0 (PR-108)
Commit message: "Adding metric visualizations to the pipeline"
[GitCheckoutListener] Skipping recording, since SCM 'git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git' already has been processed
> /usr/bin/git rev-parse --resolve-git-dir /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/.git # timeout=10
> /usr/bin/git config remote.origin.url https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git # timeout=10
Fetching upstream changes from https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git
> /usr/bin/git --version # timeout=10
> git --version # 'git version 2.34.1'
using GIT_ASKPASS to set credentials Service account credentials for Bitbucket Cloud access
> /usr/bin/git fetch --no-tags --force --progress -- https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git +refs/heads/feature/ESD-149_Integrating-Code-Coverage:refs/remotes/origin/feature/ESD-149_Integrating-Code-Coverage # timeout=10
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 64c6447de250d6ab9b9de170ac5ae5a9d491eff0 # timeout=10
[Pipeline] withEnv
[Pipeline] {
[Pipeline] unstash
Unstashed file(s) from https://rpc-jenkins-stashed-artifacts.s3.us-west-2.amazonaws.com/Example%20DevOps%20Pipelines/jenkins-example-linux-x86-app/PR-108/37/stashes/source.tgz
[Pipeline] script
[Pipeline] {
[JTE][Step - build_environment/create_ecr_repo.call()]
[Pipeline] withAWS
Constructing AWS CredentialsSetting AWS region us-west-2
[Pipeline] {
[Pipeline] sh
+ aws ecr describe-repositories --repository-names jenkins-build-environment/pipelines/jenkins-example-linux-x86-app
[Pipeline] }
[Pipeline] // withAWS
[Pipeline] echo
ECR repository 'jenkins-build-environment/pipelines/jenkins-example-linux-x86-app' is ready.
[JTE][Step - build_environment/set_tag.call()]
[Pipeline] sh
+ shasum -a 256 jenkins/build_env/Dockerfile
+ awk { print $1 }
[JTE][Step - build_environment/get_build_environment.call()]
[Pipeline] stage
[Pipeline] { (Build Environment: Get)
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withDockerRegistry
$ docker login -u AWS -p ******** https://382209070917.dkr.ecr.us-west-2.amazonaws.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108@tmp/bcb8b321-6dd1-4748-8dde-633768955b88/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credential-stores
Login Succeeded
[Pipeline] {
[JTE][Step - pipeline_utils/run_sh.call(LinkedHashMap)]
[Pipeline] sh
+ docker pull 382209070917.dkr.ecr.us-west-2.amazonaws.com/jenkins-build-environment/pipelines/jenkins-example-linux-x86-app:070ed0caa32b78922b82986a4e6aacf9df57a1e2b5b61fd651248c66052b7215
[Pipeline] echo
Image Name: 382209070917.dkr.ecr.us-west-2.amazonaws.com/jenkins-build-environment/pipelines/jenkins-example-linux-x86-app:070ed0caa32b78922b82986a4e6aacf9df57a1e2b5b61fd651248c66052b7215
[Pipeline] echo
Docker image exists with the matching SHA256 in the tag.
[Pipeline] }
[Pipeline] // withDockerRegistry
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] echo
No image update necessary.
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Pre-Stage Checks)
[JTE][Step - pipeline_utils/is_nonstandard_branch.call()]
[JTE][Step - pipeline_utils/triggered_by.call(String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[Pipeline] node
Running on EC2 (devops-ec2) - ubuntu-x86 (i-0cb4e53bdeb2eb9bc) in /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] {
[Pipeline] checkout
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential svc-bitbucket-cloud
Fetching changes from the remote Git repository
Fetching without tags
Checking out Revision 64c6447de250d6ab9b9de170ac5ae5a9d491eff0 (PR-108)
Commit message: "Adding metric visualizations to the pipeline"
[GitCheckoutListener] Skipping recording, since SCM 'git https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git' already has been processed
> /usr/bin/git rev-parse --resolve-git-dir /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/.git # timeout=10
> /usr/bin/git config remote.origin.url https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git # timeout=10
Fetching upstream changes from https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git
> /usr/bin/git --version # timeout=10
> git --version # 'git version 2.34.1'
using GIT_ASKPASS to set credentials Service account credentials for Bitbucket Cloud access
> /usr/bin/git fetch --no-tags --force --progress -- https://svc-bitbucket-cloud@bitbucket.org/rehrigdev/devops-poc-jenkins-example-app.git +refs/heads/feature/ESD-149_Integrating-Code-Coverage:refs/remotes/origin/feature/ESD-149_Integrating-Code-Coverage # timeout=10
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 64c6447de250d6ab9b9de170ac5ae5a9d491eff0 # timeout=10
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Pre-Stage Build)
Stage "Pre-Stage Build" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Scan)
[Pipeline] script
[Pipeline] {
[Pipeline] unstash
Unstashed file(s) from https://rpc-jenkins-stashed-artifacts.s3.us-west-2.amazonaws.com/Example%20DevOps%20Pipelines/jenkins-example-linux-x86-app/PR-108/37/stashes/source.tgz
[JTE][Step - fortify/static_code_vulnerability_scan.call()]
[Pipeline] stage
[Pipeline] { (Fortify: Static Code Vulnerability Scan)
[Pipeline] echo
Running static code vulnerability scan via Fortify.
[JTE][Step - fortify/with_fcli_fod_session.call(CpsClosure2)]
[Pipeline] withCredentials
Masking supported pattern matches of $API_KEY_SECRET
[Pipeline] {
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] echo
Authenticating with FoD.
[JTE][Step - fortify/fcli_fod_call.call(String)]
[JTE][Step - pipeline_utils/run_sh.call(LinkedHashMap)]
[Pipeline] sh
[Pipeline] echo
Authenticated successfully with FoD.
[Pipeline] echo
Creating or re-using dynamic branch release.
[JTE][Step - fortify/fcli_fod_create_release.call()]
[JTE][Step - pipeline_utils/triggered_by.call(String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/on_merge.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/on_pull_request.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/on_merge.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/on_pull_request.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - fortify/fcli_fod_call.call(String)]
[JTE][Step - pipeline_utils/run_sh.call(LinkedHashMap)]
[Pipeline] sh
+ /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/../fcli fod release create devops-poc-jenkins-example-app◕_◕feature/ESD-149_Integrating-Code-Coverage --skip-if-exists --status=Development --delim=◕_◕ -o json
[Pipeline] readJSON
[Pipeline] echo
Using releaseId 1371299
[JTE][Step - fortify/fcli_fod_setup_scan.call(String)]
[Pipeline] echo
Setting up scan.
[JTE][Step - fortify/fcli_fod_call.call(String)]
[JTE][Step - pipeline_utils/run_sh.call(LinkedHashMap)]
[Pipeline] sh
+ /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/../fcli fod sast setup --release=1371299 --assessment-type=Static Assessment --audit-preference=Automated --entitlement-frequency=Subscription --technology-stack=PYTHON --language-level=3 -o json
[Pipeline] echo
Done setting up scan.
[JTE][Step - fortify/fcli_fod_start_scan.call(String, String)]
[Pipeline] echo
Starting scan.
[Pipeline] fileExists
[JTE][Step - pipeline_utils/run_sh.call(LinkedHashMap)]
[Pipeline] sh
+ zip -r /tmp/fod-jenkins_Example_DevOps_Pipelines_jenkins_example_linux_x86_app_PR_108_37.zip /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108 -x *.git*
[Pipeline] echo
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/example_images/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/example_images/build_config_default.png (deflated 2%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/example_images/build_config_x86.png (deflated 2%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/example_images/build_config_arm.png (deflated 3%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/build_env/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/build_env/Dockerfile (deflated 37%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_pre_stage_build/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_pre_stage_build/steps/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_pre_stage_build/steps/custom_pre_stage_build.groovy (deflated 30%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_pre_stage_build/steps/pre_stage_build.groovy (deflated 38%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_test/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_test/steps/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_test/steps/test_for.groovy (deflated 39%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_test/steps/custom_test.groovy (deflated 57%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_deploy/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_deploy/steps/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_deploy/steps/custom_deploy.groovy (deflated 32%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_deploy/steps/deploy_to.groovy (deflated 40%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_build/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_build/steps/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_build/steps/custom_build.groovy (deflated 44%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/libraries/custom_build/steps/build_for.groovy (deflated 39%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/scripts/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/scripts/deploy.sh (deflated 12%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/scripts/build.sh (deflated 10%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/scripts/test.sh (deflated 24%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/jenkins/scripts/pre_stage_build.sh (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/requirements.txt (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/build/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/build/ignorable.txt (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/README.md (deflated 55%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/code.py (deflated 6%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/.coveragerc (deflated 34%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/multi_arch_pipeline_config/ (stored 0%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/multi_arch_pipeline_config/pipeline_config_x86.groovy (deflated 74%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/multi_arch_pipeline_config/pipeline_config_arm.groovy (deflated 74%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/pipeline_config.groovy (deflated 73%)
adding: home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/unit_test.py (deflated 55%)
[JTE][Step - fortify/fcli_fod_call.call(String)]
[JTE][Step - pipeline_utils/run_sh.call(LinkedHashMap)]
[Pipeline] sh
+ /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/../fcli fod sast start --file /tmp/fod-jenkins_Example_DevOps_Pipelines_jenkins_example_linux_x86_app_PR_108_37.zip --rel 1371299 --store jenkins_Example_DevOps_Pipelines_jenkins_example_linux_x86_app_PR_108_37
[Pipeline] echo
Upload fod-jenkins_Example_DevOps_Pipelines_jenkins_example_linux_x86_app_PR_108_37.zip: 0 of 269706 bytes complete
Upload fod-jenkins_Example_DevOps_Pipelines_jenkins_example_linux_x86_app_PR_108_37.zip: 269706 of 269706 bytes complete
Id Scan type Analysis Status Application Microservice Release Action
14806854 Static Pending devops-poc-jenkins-example-app feature/ESD-149_Integrating-Code-Coverage STARTED
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[Pipeline] echo
As this is a PR to develop, we do not need to wait on results.
[JTE][Step - fortify/fcli_fod_call.call(String)]
[JTE][Step - pipeline_utils/run_sh.call(LinkedHashMap)]
[Pipeline] sh
+ /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/../fcli fod session logout
[Pipeline] echo
Logging out from FoD.
[Pipeline] }
[Pipeline] // stage
[JTE][Step - sonatype/open_source_vulnerability_scan.call()]
[Pipeline] stage
[Pipeline] { (Sonatype: Open Source Vulnerability Scan)
[Pipeline] echo
Running open source vulnerability scan via Sonatype
[Pipeline] readJSON
[JTE][Step - pipeline_utils/on_pull_request.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/on_merge.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[Pipeline] nexusPolicyEvaluation
[INFO] Amending source control record for application with id: devops-poc-jenkins-example-app with discovered Repository URL: https://bitbucket.org/rehrigdev/devops-poc-jenkins-example-app
[INFO] Waiting for policy evaluation to complete...
[INFO] 2025-06-10T07:29:57.885Z Scanning application devops-poc-jenkins-example-app.
[INFO] Discovered commit hash '64c6447de250d6ab9b9de170ac5ae5a9d491eff0' via environment variable GIT_COMMIT
[INFO] Discovered branch name 'PR-108' via environment variable GIT_BRANCH
[INFO] Scan target: /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/requirements.txt
[INFO] Scan configuration properties:
[INFO] dirExcludes=null
[INFO] dirIncludes=null
[INFO] fileExcludes=
[INFO] fileIncludes=
[INFO] 2025-06-10T07:29:57.907Z Starting scanning target: /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/requirements.txt
[INFO] 2025-06-10T07:29:57.910Z Scanned 1 total files
[INFO] 2025-06-10T07:29:57.913Z Finished scanning application devops-poc-jenkins-example-app.
[INFO] Discovered repository url 'https://bitbucket.org/rehrigdev/devops-poc-jenkins-example-app' via environment variable GIT_URL
[INFO] Repository URL https://bitbucket.org/rehrigdev/devops-poc-jenkins-example-app was found using automation
[INFO] Assigned scan ID 143d86aa8fa24061b0e0408593e9cc9b for evaluation
[INFO] Policy evaluation completed in 10 seconds.
The detailed report can be viewed online at https://awsstdev011.rpl.local/ui/links/application/devops-poc-jenkins-example-app/report/143d86aa8fa24061b0e0408593e9cc9b
The application priorities can be viewed online at https://awsstdev011.rpl.local/ui/links/developer/priorities/devops-poc-jenkins-example-app/143d86aa8fa24061b0e0408593e9cc9b
Summary of policy violations: 0 critical, 0 severe, 0 moderate
[Pipeline] echo
Sonatype results stored successfully.
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Automated Unit Test)
[Pipeline] script
[Pipeline] {
[JTE][Step - pipeline_utils/complete_unit_testing.call()]
[JTE][Step - build_environment/with_build_environment.call(CpsClosure2)]
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withDockerRegistry
$ docker login -u AWS -p ******** https://382209070917.dkr.ecr.us-west-2.amazonaws.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108@tmp/8004623a-8770-4c2e-b651-56629ee5b680/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credential-stores
Login Succeeded
[Pipeline] {
[Pipeline] isUnix
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ docker inspect -f . jenkins-build-environment/pipelines/jenkins-example-linux-x86-app:070ed0caa32b78922b82986a4e6aacf9df57a1e2b5b61fd651248c66052b7215
Error: No such object: jenkins-build-environment/pipelines/jenkins-example-linux-x86-app:070ed0caa32b78922b82986a4e6aacf9df57a1e2b5b61fd651248c66052b7215
[Pipeline] sh
+ docker inspect -f . 382209070917.dkr.ecr.us-west-2.amazonaws.com/jenkins-build-environment/pipelines/jenkins-example-linux-x86-app:070ed0caa32b78922b82986a4e6aacf9df57a1e2b5b61fd651248c66052b7215
.
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] withDockerContainer
EC2 (devops-ec2) - ubuntu-x86 (i-0cb4e53bdeb2eb9bc) does not seem to be running inside a container
$ docker run -t -d -u 1000:1000 -v /var/run/docker.sock:/var/run/docker.sock -w /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108 -v /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108:/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108:rw,z -v /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108@tmp:/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** 382209070917.dkr.ecr.us-west-2.amazonaws.com/jenkins-build-environment/pipelines/jenkins-example-linux-x86-app:070ed0caa32b78922b82986a4e6aacf9df57a1e2b5b61fd651248c66052b7215 cat
$ docker top 5b01905c63e6f47cc5371f14733dfcd41a2078b733d0084b1b41673c1c06da03 -eo pid,comm
[Pipeline] {
[Pipeline] unstash
Unstashed file(s) from https://rpc-jenkins-stashed-artifacts.s3.us-west-2.amazonaws.com/Example%20DevOps%20Pipelines/jenkins-example-linux-x86-app/PR-108/37/stashes/source.tgz
[JTE][Step - pipeline_utils/on_merge.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/on_pull_request.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - custom_test/test_for.call(ApplicationEnvironment)]
[Pipeline] load
[Pipeline] { (jenkins/libraries/custom_test/steps//custom_test.groovy)
[Pipeline] }
[Pipeline] // load
[Pipeline] echo
Testing application for Dev...
[Pipeline] sh
+ coverage run -m xmlrunner unit_test.py -o .jenkins_visualizations/junit/
Running tests...
----------------------------------------------------------------------
...
----------------------------------------------------------------------
Ran 3 tests in 0.016s
OK
Generating XML reports...
[Pipeline] sh
+ coverage report -m
Name Stmts Miss Cover Missing
---------------------------------------
code.py 2 0 100%
---------------------------------------
TOTAL 2 0 100%
+ coverage xml
Wrote XML report to .jenkins_visualizations/coverage/report.xml
[Pipeline] recordCoverage
[Coverage] Recording coverage results
[Coverage] Creating parser for Cobertura Coverage Reports
[Coverage] Searching for all files in '/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108' that match the pattern '.jenkins_visualizations/coverage/*.xml'
[Coverage] Traversing of symbolic links: enabled
[Coverage] -> found 1 file
[Coverage] Successfully parsed file '/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/.jenkins_visualizations/coverage/report.xml'
[Coverage] MODULE: 100.00% (1/1)
[Coverage] PACKAGE: 100.00% (1/1)
[Coverage] FILE: 100.00% (1/1)
[Coverage] CLASS: 100.00% (1/1)
[Coverage] LINE: 100.00% (2/2)
[Coverage] LOC: 2
[Coverage] CYCLOMATIC_COMPLEXITY: 0
[Coverage] Successfully processed file '.jenkins_visualizations/coverage/report.xml'
[Coverage] Resolving source code files...
[Coverage] Searching for source code files in '/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/src/main/java'
[Coverage] -> resolved absolute paths for all 1 source files
[Checks API] No suitable checks publisher found.
[Coverage] Obtaining result action of reference build
[Coverage] Reference build recorder is not configured
[Coverage] -> Found no reference build
[Coverage] Evaluating quality gates
[Coverage] -> All quality gates have been passed
[Coverage] -> Details for each quality gate:
[Coverage] - [Overall project - Line Coverage]: ≪Success≫ - (Actual value: 100.00%, Quality gate: 65.00)
[Coverage] - [Modified files - Line Coverage]: ≪Not built≫ - (Actual value: n/a, Quality gate: 65.00)
[Coverage] - [Overall project - File Coverage]: ≪Success≫ - (Actual value: 100.00%, Quality gate: 100.00)
[Coverage] Executing source code painting...
[Coverage] Painting 1 source files on agent
[Coverage] -> finished painting successfully
[Coverage] -> zipping sources from folder '/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/coverage' as '/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/coverage-sources.zip'
[Coverage] Copying painted sources from agent to build folder
[Coverage] -> extracting...
[Coverage] -> done
[Coverage] Deleting source code files of build #36
[Coverage] Finished coverage processing - adding the action to the build...
[Pipeline] junit
Recording test results
[Checks API] No suitable checks publisher found.
[Pipeline] echo
displaying the reslut in screen
[Pipeline] sh
+ cat .jenkins_visualizations/coverage/report.xml
/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] echo
successfully displayed
[Pipeline] sh
+ cd .jenkins_visualizations/junit
+ pwd
/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/.jenkins_visualizations/junit
+ ls -lrta
total 12
drwxr-xr-x 4 pipeline pipeline 4096 Jun 10 07:30 ..
-rw-r--r-- 1 pipeline pipeline 691 Jun 10 07:30 TEST-unit_test.TestSimpleMath-20250610073013.xml
drwxr-xr-x 2 pipeline pipeline 4096 Jun 10 07:30 .
[Pipeline] sh
+ cat .jenkins_visualizations/junit/TEST-unit_test.TestSimpleMath-20250610073013.xml
[JTE][Step - pipeline_utils/on_merge.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/on_pull_request.call(LinkedHashMap, CpsClosure2)]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[Pipeline] }
$ docker stop --time=1 5b01905c63e6f47cc5371f14733dfcd41a2078b733d0084b1b41673c1c06da03
$ docker rm -f --volumes 5b01905c63e6f47cc5371f14733dfcd41a2078b733d0084b1b41673c1c06da03
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // withDockerRegistry
[Pipeline] }
[Pipeline] // withEnv
[JTE][Step - pipeline_utils/code_coverage_report_result.call()]
[Pipeline] echo
Code coverage app name devops-poc-jenkins-example-app
[Pipeline] sh
+ pwd
/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] sh
+ ls -ltra
total 72
drwxr-xr-x 4 ubuntu ubuntu 4096 Jun 10 06:50 ..
-rw-rw-r-- 1 ubuntu ubuntu 598 Jun 10 07:29 unit_test.py
-rw-rw-r-- 1 ubuntu ubuntu 47 Jun 10 07:29 requirements.txt
-rw-rw-r-- 1 ubuntu ubuntu 3282 Jun 10 07:29 pipeline_config.groovy
-rw-rw-r-- 1 ubuntu ubuntu 69 Jun 10 07:29 code.py
-rw-rw-r-- 1 ubuntu ubuntu 754 Jun 10 07:29 README.md
-rw-rw-r-- 1 ubuntu ubuntu 141 Jun 10 07:29 .coveragerc
-rw-rw-r-- 1 ubuntu ubuntu 677 Jun 10 07:29 .gitignore
drwxrwxr-x 5 ubuntu ubuntu 4096 Jun 10 07:29 jenkins
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:29 build
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:29 example_images
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:29 multi_arch_pipeline_config
drwxrwxr-x 8 ubuntu ubuntu 4096 Jun 10 07:29 .git
drwxr-xr-x 2 ubuntu ubuntu 4096 Jun 10 07:30 __pycache__
drwxr-xr-x 4 ubuntu ubuntu 4096 Jun 10 07:30 .jenkins_visualizations
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:30 coverage
drwxrwxr-x 10 ubuntu ubuntu 4096 Jun 10 07:30 .
-rw-rw-r-- 1 ubuntu ubuntu 564 Jun 10 07:30 coverage-sources.zip
[Pipeline] sh
+ cat .jenkins_visualizations/coverage/report.xml
/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] pwd
[Pipeline] echo
show the workspace path /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] fileExists
[Pipeline] echo
📄 Using coverage report at: /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/.jenkins_visualizations/coverage/report.xml
[Pipeline] sh
+ cat /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/.jenkins_visualizations/coverage/report.xml
/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] readFile
[Pipeline] echo
🧪 Line Coverage: 100.0
[Pipeline] echo
🌿 Branch Coverage: 0.0
[Pipeline] echo
final code coverage results [lineCoverage:100.0, branchCoverage:0.0]
[JTE][Step - pipeline_utils/code_coverage_report_to_datadog.call()]
[JTE][Step - pipeline_utils/code_coverage_report_result.call()]
[Pipeline] echo
Code coverage app name devops-poc-jenkins-example-app
[Pipeline] sh
+ pwd
/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] sh
+ ls -ltra
total 72
drwxr-xr-x 4 ubuntu ubuntu 4096 Jun 10 06:50 ..
-rw-rw-r-- 1 ubuntu ubuntu 598 Jun 10 07:29 unit_test.py
-rw-rw-r-- 1 ubuntu ubuntu 47 Jun 10 07:29 requirements.txt
-rw-rw-r-- 1 ubuntu ubuntu 3282 Jun 10 07:29 pipeline_config.groovy
-rw-rw-r-- 1 ubuntu ubuntu 69 Jun 10 07:29 code.py
-rw-rw-r-- 1 ubuntu ubuntu 754 Jun 10 07:29 README.md
-rw-rw-r-- 1 ubuntu ubuntu 141 Jun 10 07:29 .coveragerc
-rw-rw-r-- 1 ubuntu ubuntu 677 Jun 10 07:29 .gitignore
drwxrwxr-x 5 ubuntu ubuntu 4096 Jun 10 07:29 jenkins
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:29 build
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:29 example_images
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:29 multi_arch_pipeline_config
drwxrwxr-x 8 ubuntu ubuntu 4096 Jun 10 07:29 .git
drwxr-xr-x 2 ubuntu ubuntu 4096 Jun 10 07:30 __pycache__
drwxr-xr-x 4 ubuntu ubuntu 4096 Jun 10 07:30 .jenkins_visualizations
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:30 coverage
drwxrwxr-x 10 ubuntu ubuntu 4096 Jun 10 07:30 .
-rw-rw-r-- 1 ubuntu ubuntu 564 Jun 10 07:30 coverage-sources.zip
[Pipeline] sh
+ cat .jenkins_visualizations/coverage/report.xml
/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] pwd
[Pipeline] echo
show the workspace path /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] fileExists
[Pipeline] echo
📄 Using coverage report at: /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/.jenkins_visualizations/coverage/report.xml
[Pipeline] sh
+ cat /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/.jenkins_visualizations/coverage/report.xml
/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] readFile
[Pipeline] echo
🧪 Line Coverage: 100.0
[Pipeline] echo
🌿 Branch Coverage: 0.0
[Pipeline] echo
final code coverage results [lineCoverage:100.0, branchCoverage:0.0]
[JTE][Step - pipeline_utils/triggered_by.call(String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[Pipeline] echo
sending code coverage metrics to datadog
[Pipeline] echo
Code coverage app name devops-poc-jenkins-example-app
[Pipeline] echo
sending code coverage results to datadog metrcis
[JTE][Step - datadog_api/send_datadog_metric.call(LinkedHashMap)]
[Pipeline] writeJSON
[Pipeline] echo
{"series":[{"metric":"codequality.line.coverage","type":3,"points":[{"timestamp":1749540623,"value":100}],"tags":["build_number:37","branch:feature/ESD-149_Integrating-Code-Coverage","app:devops-poc-jenkins-example-app"],"resources":[{"name":"devops-poc-jenkins-example-app","type":"codequality.app.name"},{"name":"feature/ESD-149_Integrating-Code-Coverage","type":"branch"},{"name":"37","type":"build_number"}]},{"metric":"codequality.branch.coverage","type":3,"points":[{"timestamp":1749540623,"value":0}],"tags":["build_number:37","branch:feature/ESD-149_Integrating-Code-Coverage","app:devops-poc-jenkins-example-app"],"resources":[{"name":"devops-poc-jenkins-example-app","type":"codequality.app.name"},{"name":"feature/ESD-149_Integrating-Code-Coverage","type":"branch"},{"name":"37","type":"build_number"}]}]}
[Pipeline] withCredentials
Masking supported pattern matches of $DD_API_KEY_KPI_DEVOPS or $DD_APP_KEY_KPI_DEVOPS
[Pipeline] {
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] httpRequest
HttpMethod: POST
URL: https://api.datadoghq.com/api/v2/series
Content-Type: application/json
DD-API-KEY: *****
DD-APP-KEY: *****
Sending request to url: https://api.datadoghq.com/api/v2/series
Response Code: HTTP/1.1 202 Accepted
Success: Status code 202 is in the accepted range: 100:500
[Pipeline] echo
Metrics sent successfully!
[Pipeline] echo
successfully sent code coverage results datadog metrcis
[JTE][Step - pipeline_utils/code_coverage_unit_test_result.call()]
[Pipeline] echo
Code unit test coverage app name devops-poc-jenkins-example-app
[Pipeline] sh
+ pwd
/home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] sh
+ ls -ltra
total 72
drwxr-xr-x 4 ubuntu ubuntu 4096 Jun 10 06:50 ..
-rw-rw-r-- 1 ubuntu ubuntu 598 Jun 10 07:29 unit_test.py
-rw-rw-r-- 1 ubuntu ubuntu 47 Jun 10 07:29 requirements.txt
-rw-rw-r-- 1 ubuntu ubuntu 3282 Jun 10 07:29 pipeline_config.groovy
-rw-rw-r-- 1 ubuntu ubuntu 69 Jun 10 07:29 code.py
-rw-rw-r-- 1 ubuntu ubuntu 754 Jun 10 07:29 README.md
-rw-rw-r-- 1 ubuntu ubuntu 141 Jun 10 07:29 .coveragerc
-rw-rw-r-- 1 ubuntu ubuntu 677 Jun 10 07:29 .gitignore
drwxrwxr-x 5 ubuntu ubuntu 4096 Jun 10 07:29 jenkins
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:29 build
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:29 example_images
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:29 multi_arch_pipeline_config
drwxrwxr-x 8 ubuntu ubuntu 4096 Jun 10 07:29 .git
drwxr-xr-x 2 ubuntu ubuntu 4096 Jun 10 07:30 __pycache__
drwxr-xr-x 4 ubuntu ubuntu 4096 Jun 10 07:30 .jenkins_visualizations
drwxrwxr-x 2 ubuntu ubuntu 4096 Jun 10 07:30 coverage
drwxrwxr-x 10 ubuntu ubuntu 4096 Jun 10 07:30 .
-rw-rw-r-- 1 ubuntu ubuntu 564 Jun 10 07:30 coverage-sources.zip
[Pipeline] sh
+ cat .jenkins_visualizations/junit/TEST-unit_test.TestSimpleMath-20250610073013.xml
[Pipeline] pwd
[Pipeline] echo
show the workspace path /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108
[Pipeline] echo
finding the test files....!
[Pipeline] findFiles
[Pipeline] echo
📄 Using coverage unit test report at: .jenkins_visualizations/junit/TEST-unit_test.TestSimpleMath-20250610073013.xml
[Pipeline] sh
+ cat /home/ubuntu/workspace/ins-example-linux-x86-app_PR-108/.jenkins_visualizations/junit/TEST-unit_test.TestSimpleMath-20250610073013.xml
[Pipeline] readFile
[Pipeline] echo
Tests: 3
[Pipeline] echo
Failures: 0
[Pipeline] echo
Errors: 0
[Pipeline] echo
Skipped: 0
[Pipeline] echo
Success: 3
[Pipeline] echo
final code coverage results [total:3, failures:0, errors:0, skipped:0, success:3]
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
Post stage
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is disabled by the job configuration...
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Approve - Dev)
[JTE][Step - pipeline_utils/is_nonstandard_branch.call()]
[JTE][Step - pipeline_utils/triggered_by.call(String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/triggered_by.call(LinkedHashMap, String)]
[JTE][Step - pipeline_utils/is_pr_build.call()]
[JTE][Step - pipeline_utils/is_tag_build.call()]
[JTE][Step - pipeline_utils/get_approver.call(ApplicationEnvironment)]
[JTE][Step - pipeline_utils/approve_for.call(LinkedHashMap, ApplicationEnvironment)]
[Pipeline] emailext
Sending email to: ujangiti@rehrig.com josephmelendez@rehrig.com akathasagaram@rehrig.com kkumar@rehrig.com hkeshwani@rehrig.com
[Pipeline] timeout
Timeout set to expire in 7 days 0 hr
[Pipeline] {
[Pipeline] input
Deploy to Dev?
Approve deployment or Abort