Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Seismic DMS Suite
seismic-dms-cpp-lib
Commits
d386453c
Commit
d386453c
authored
Jan 19, 2022
by
Daniel Perez
Browse files
ci: adding abi scanner for aws
parent
6e796e97
Pipeline
#87790
failed with stages
in 12 minutes and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d386453c
...
...
@@ -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
...
...
devops/osdu/scanners/abi-check-sdapi-aws.yml
0 → 100644
View file @
d386453c
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment