This commit is contained in:
lVAL 2020-09-28 18:48:21 +08:00
commit 2f470baa3f
3 changed files with 60 additions and 2 deletions

29
Jenkinsfile-prd Normal file
View File

@ -0,0 +1,29 @@
pipeline {
agent {
node {
label 'master'
}
}
stages {
stage('Package') {
tools {
nodejs 'nodejs-10'
}
steps {
sh 'npm update'
sh 'npm install'
sh 'npm run build'
}
}
stage('Publish') {
steps {
sh 'mkdir -p /usr/local/joylink/official-website'
sh 'rm -rf /usr/local/joylink/official-website/*'
sh 'cp -rf ./dist/* /usr/local/joylink/official-website/'
}
}
}
}

29
Jenkinsfile-test Normal file
View File

@ -0,0 +1,29 @@
pipeline {
agent {
node {
label 'master'
}
}
stages {
stage('Package') {
tools {
nodejs 'nodejs-10'
}
steps {
sh 'npm update'
sh 'npm install'
sh 'npm run build'
}
}
stage('Publish') {
steps {
sh 'mkdir -p /usr/local/joylink/official-website'
sh 'rm -rf /usr/local/joylink/official-website/*'
sh 'cp -rf ./dist/* /usr/local/joylink/official-website/'
}
}
}
}

View File

@ -9,8 +9,8 @@ const name = defaultSettings.title;
const port = 9520;
module.exports = {
publicPath: "/official-website",
outputDir: "dist/official-website",
publicPath: "/",
outputDir: "dist",
assetsDir: "static",
lintOnSave: false,
productionSourceMap: false,