You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RuoYi-Vue-cloud/cloud/Jenkinsfile

30 lines
827 B

1 year ago
pipeline {
agent any
environment {
PATH = "/opt/maven3.8.8/bin:/opt/node/bin:${env.PATH}"
}
1 year ago
tools {
maven 'maven388'
}
stages {
stage('前端代码打包') {
steps {
sh "cd ruoyi-ui && npm install && npm run build:prod"
echo "前端代码打包完成"
}
}
stage('后端代码打包') {
steps {
sh "mvn clean package -Dmaven.test.skip=true"
echo "后端代码打包完成"
}
}
stage('构建镜像') {
steps {
sh "cd cloud/ruoyi-nginx && docker build -t ruoyi-nginx ."
sh "cd cloud/ruoyi-java && docker build -t ruoyi-java ."
1 year ago
echo "构建镜像完成"
}
}
}
}