| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- pipeline {
- agent {label 'release'}
- stages {
- stage('Stop Server') {
- steps {
- catchError(buildResult: 'SUCCESS') {
- sh 'target/o2server/stop_windows.sh'
- }
- }
- }
- stage('init') {
- steps {
- sh 'npm install'
- sh 'npm run clear'
- }
- }
- stage('dependency') {
- steps {
- sh 'npm run preperation:win'
- }
- }
- stage('build') {
- parallel {
- stage('build server') {
- steps {
- sh 'id'
- sh 'npm run build_server'
- }
- }
- stage('build web') {
- steps {
- sh 'npm run build_web'
- }
- }
- }
- }
- stage('deploy') {
- steps {
- sh 'npm run deploy:win'
- }
- }
- stage('run') {
- steps {
- sh 'JENKINS_NODE_COOKIE=dontKillMe start /min target/o2server/start_windows.bat>>output.txt'
- }
- }
- }
- }
|