1 Star 0 Fork 0

Lizhi Admin/Lizhi Admin Pro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Jenkinsfile 1023 Bytes
一键复制 编辑 原始数据 按行查看 历史
lihao3 提交于 2023-07-05 17:39 . 初始化提交
def TARGET_PATH = '/lihao3/local/lizhi-admin-pro'
def SOURCE_PATH = './admin-pro-server/target'
def SHELL_NAME = 'lizhi-admin-pro.sh.sh'
def TEST_REMOTE_HOST = '[email protected]'
pipeline {
agent any
stages {
stage('getGitlabBranchName') {
steps {
echo "current branch is: ${env.gitlabBranch}"
}
}
stage('build-test') {
when {
environment name: 'gitlabBranch', value: 'test'
}
steps {
withEnv(['JENKINS_NODE_COOKIE=dontkillme']) {
sh "mvnd clean package -U -Ptest -DskipTests"
sh "ssh $TEST_REMOTE_HOST mkdir -p $TARGET_PATH"
sh "scp $SOURCE_PATH/*.jar $TEST_REMOTE_HOST:$TARGET_PATH"
sh "scp ./$SHELL_NAME $TEST_REMOTE_HOST:$TARGET_PATH"
sh "ssh $TEST_REMOTE_HOST \"sh $TARGET_PATH/$SHELL_NAME\" restart $TEST_SKYWALKING_HOST"
}
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/lizhi-admin/lizhi-admin-pro.git
[email protected]:lizhi-admin/lizhi-admin-pro.git
lizhi-admin
lizhi-admin-pro
Lizhi Admin Pro
master

搜索帮助