帮我写一个pipeline流水线脚本流程包含:拉取分支代码、构建、上传
pipeline { agent any
stages {
stage('Clone repository') {
steps {
git branch: 'your-branch-name', url: 'your-repository-url'
}
}
stage('Build') {
steps {
sh 'your-build-command'
}
}
stage('Upload') {
steps {
sh 'your-upload-command'
}
}
}
}
原文地址: https://www.cveoy.top/t/topic/cuHp 著作权归作者所有。请勿转载和采集!