GitLab Pipeline Sample Code
The sample code is as follows:
stages:
- build
- affinity-analysis
affinity-check:
stage: affinity-analysis
tags:
- kunpeng_scanner # This is the tag used during gitlab-runner registration. Multiple tags may be selected.
script:
- echo '====== Build affinity ======'
# Example: devkit advisor affi-check -i /opt/testcase/affinity/build/wtdbg2-2.5 -c make -r html
- devkit advisor affi-check -i path to the source code to be scanned -c source code build command -r html
- mv ./affi-check*.html ./affinity-check.html
artifacts:
paths:
- affinity-check.html
name: affi-check
- You are advised to perform the build affinity check before the build process.
- /opt/testcase/affinity/build/wtdbg2-2.5 indicates the path to the source code folder to be analyzed. Replace it with the actual path.
Parent topic: Build Affinity Check