加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Jenkinsfile 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
Jzin 提交于 2023-02-21 03:06 . Jenkins流水线配置
pipeline {
agent any
stages {
stage('pull code') {
steps {
git credentialsId: 'gitee-user-password', url: 'https://gitee.com/jzins/mxshop.git'
}
}
stage('build project') {
steps {
sh '''echo "开始构建"
cd online-store
cnpm install
cnpm run build
echo "构建成功"'''
}
}
stage('fa srv') {
steps {
sshPublisher(publishers: [sshPublisherDesc(configName: '192.168.10.130-root', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: 'echo "success"', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/docker/nginx/data/html', remoteDirectorySDF: false, removePrefix: 'online-store/dist', sourceFiles: 'online-store/dist/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化