---
title: Jenkins流水线示例代码
description: 示例代码如下：
url: "https://www.hikunpeng.com/document/detail/zh/nativedevp/userguide/pipeline/NativeDevelopment_0112.html"
---

# Jenkins流水线示例代码

示例代码如下：

```
stage('build') {
steps {
script{
sh '''
source ${HOME}/.local/wrap-bin/devkit_NonInvasiveSwitching.sh
cd
/home/test/
build
make
'''
}
}
}
```

“/home/test/build”指项目文件路径，编译命令为make，请根据实际情况进行替换。
