Commit d386453c authored by Daniel Perez's avatar Daniel Perez
Browse files

ci: adding abi scanner for aws

parent 6e796e97
Pipeline #87790 failed with stages
in 12 minutes and 16 seconds
......@@ -36,6 +36,9 @@ include:
# ibm
- local: "/devops/osdu/scanners/abi-check-sdapi-ibm.yml"
# aws
- local: "/devops/osdu/scanners/abi-check-sdapi-aws.yml"
# deploy
# polycloud
......
abi-check-for-sdapi-aws:
image: community.opengroup.org:5555/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-cpp-lib/sdapi-osdu-centos7-static-deps:latest
tags: ["osdu-small"]
stage: scan
needs: ['compile-and-unit-test-aws']
allow_failure: true
script:
- yum update -y
- yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- yum install -y jq
- cp devops/config/abi_check/branch.xml devops/config/abi_check/current_branch.xml
- chmod +x ./devops/scripts/gen_version.sh
- current_version=$(./devops/scripts/gen_version.sh)
- sed -i 's,#{version}#,'$current_version',' devops/config/abi_check/current_branch.xml
- cp devops/config/abi_check/branch.xml devops/config/abi_check/master_branch.xml
- master_version=$(curl --header "JOB-TOKEN:\ $CI_JOB_TOKEN" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages" | jq ".[] | select(.pipeline.ref==\"master\") | .version" | tail -1 | sed -r 's|"||g')
- sed -i 's,#{version}#,'$master_version',' devops/config/abi_check/master_branch.xml
- mkdir sdapi-$master_version
- curl --request GET --header "DEPLOY-TOKEN:\ $DEPLOY_TOKEN" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/sdapi/$master_version/sdapi-aws.tar.gz" --output sdapi-$master_version/sdapi-aws.tar.gz
- cd sdapi-$master_version
- tar -xvzf sdapi-aws.tar.gz
- cd ..
- echo "ABI Check"
- echo "Master branch $master_version"
- echo "Current branch $current_version"
- chmod +x ./devops/scripts/abi-check.sh
- ./devops/scripts/abi-check.sh
- if [ -f logs/sdapi/$current_version/log.txt ]; then cat logs/sdapi/$current_version/log.txt; fi
- if [ -f logs/sdapi/$master_version/log.txt ]; then cat logs/sdapi/$master_version/log.txt; fi
- mkdir compat_reports/sdapi/aws
- mv compat_reports/sdapi/${master_version}_to_${current_version} compat_reports/sdapi/aws/.
artifacts:
name: compat_report_aws
paths:
- compat_reports/sdapi/aws
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment