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

示例代码如下：

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

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