加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Jenkinsfile 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
pipeline {
agent {
kubernetes {
// Rather than inline YAML, in a multibranch Pipeline you could use: yamlFile 'jenkins-pod.yaml'
// Or, to avoid YAML:
containerTemplate {
name 'python'
image 'bitnami/java:1.8'
command 'sleep'
args 'infinity'
}
// Can also wrap individual steps:
// container('shell') {
// sh 'hostname'
// }
defaultContainer 'python'
}
}
stages {
stage('Code Check ') {
steps("Code Check") {
echo 'checking python code.'
// sh 'bash scripts/codecheck.sh'
}
}
stage('Unit Testing') {
steps("Unit Testing") {
echo "running unit tests"
// sh 'bash scripts/unit.sh'
}
}
stage('API Testing') {
steps {
echo 'API Testing....'
// sh 'bash scripts/api.sh'
}
}
stage('Continuous Training') {
// when {
// changeset "data/*, src/train/*.py"
// }
steps("model training") {
echo 'trigger continuous training jobs in argo'
// sh 'bash scripts/data_process.sh'
}
}
stage('Continuous Deployment') {
//Decided by the training result
steps("deploying") {
echo 'deploy new version of model'
// sh 'bash scripts/deploy.sh'
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化