---
title: GitLab流水线示例代码
description: "示例代码如下："
url: https://www.hikunpeng.com/document/detail/zh/nativedevp/userguide/pipeline/NativeDevelopment_0067.html
sourcePath: /source/zh/nativedevp/userguide/pipeline/NativeDevelopment_0067.html
indexId: 6558e4dd4bb849e9fca0fa80ab08e7b00171b4fe2f3b4444c2e83dfd1974ab2668
---
# GitLab流水线示例代码

示例代码如下：

```
stages:
- build
- affinity-analysis
64-bit-running-mode-check:
stage: affinity-analysis
tags:
- kunpeng_scanner # 对应gitlab-runner注册时的标签，可选择多个
script:
- echo '====== 64位运行模式检查 ======'
# 示例 devkit advisor run-mode -i /opt/DevKit/testcase/affinity/precheck/test005 -r html
- devkit advisor run-mode -i
待扫描的源码文件夹路径
-c
源码构建命令
-r html
- mv ./mode_check*.html ./64-bit-running-mode-check.html
artifacts:
paths:
- 64-bit-running-mode-check.html
name: mode-check
```

- 使用64位运行模式检查建议放在构建流程节点前。
- “/opt/DevKit/testcase/affinity/precheck/test005”指待扫描的源码文件夹路径，请根据实际情况进行替换。
