pipeline {
agent { label 'wing-node-normal' }
environment {
RELEASE_S3_BUCKET_NAME='flexgalaxy-test-docs'
DEPLOY_S3_BUCKET_NAME='flexgalaxy-ai-docs'
}
parameters {
string(name: 'VERSION', defaultValue: '1.0.0.10108')
}
stages {
stage('Check parameters') {
when {
expression { params.VERSION == '' || params.VERSION == 'none' }
}
steps {
echo 'VERSION:' + params.VERSION
echo 'parameters is illegal, this build will return fail and exit'
sh 'exit 1'
}
}
stage('Checkout') {
steps {
checkout([$class : 'RepoScm',
repoUrl : 'https://github.com/SiriusVoyager/git-repo',
manifestRepositoryUrl: 'https://github.com/SiriusVoyager/manifests',
manifestBranch : 'master',
manifestFi

这个博客介绍了一个 Jenkins pipeline,用于从GitHub检出代码,并将Flagship SDK的文档复制到AWS S3桶中进行公开发布。pipeline首先检查参数,然后检出代码,接着将SDK的zip文件拷贝到指定的S3桶,再用Doxygen生成文档并推送到S3,最后提供预览URL。
最低0.47元/天 解锁文章
1210

被折叠的 条评论
为什么被折叠?



