Jenkins 构建。
This commit is contained in:
39
yudao-server/Jenkinsfile
vendored
Normal file
39
yudao-server/Jenkinsfile
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env groovy
|
||||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
maven 'maven3.6.2'
|
||||
jdk 'jdk17'
|
||||
}
|
||||
stages {
|
||||
stage('build') {
|
||||
steps {
|
||||
script {
|
||||
sh "mvn clean package -P module-bpm -D maven.test.skip=true"
|
||||
}
|
||||
dir('yudao-server') {
|
||||
sh "docker build -t $IMAGE_PATH ."
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('deploy') {
|
||||
steps {
|
||||
script {
|
||||
sh "docker push $IMAGE_PATH"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
sh """
|
||||
curl -X POST "${params.API_URL}/success"
|
||||
"""
|
||||
}
|
||||
failure {
|
||||
sh """
|
||||
curl -X POST "${params.API_URL}/failure"
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
20
yudao-server/src/main/resources/application-prod.yaml
Normal file
20
yudao-server/src/main/resources/application-prod.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
spring:
|
||||
datasource:
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://${MASTER_DATASOURCE_URL}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
|
||||
username: ${MASTER_DATASOURCE_USERNAME}
|
||||
password: ${MASTER_DATASOURCE_PASSWORD}
|
||||
data:
|
||||
redis:
|
||||
host: ${REDIS_HOST}
|
||||
database: ${REDIS_DATABASE:0}
|
||||
|
||||
wx:
|
||||
mp:
|
||||
app-id: wxf56b1542b9e85f8a
|
||||
secret: 496379dcef1ba869e9234de8d598cfd3
|
||||
miniapp:
|
||||
appid: wxc4598c446f8a9cb3
|
||||
secret: 4a1a04e07f6a4a0751b39c3064a92c8b
|
||||
Reference in New Issue
Block a user