chore: hook-test
This commit is contained in:
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@@ -1,22 +0,0 @@
|
|||||||
pipeline {
|
|
||||||
agent any
|
|
||||||
tools {
|
|
||||||
nodejs "nodejs-default"
|
|
||||||
}
|
|
||||||
stages {
|
|
||||||
stage('Build') {
|
|
||||||
steps {
|
|
||||||
sh 'npm install'
|
|
||||||
sh 'npm run build'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deploy') {
|
|
||||||
steps {
|
|
||||||
sh '''#!/bin/sh
|
|
||||||
rm -r /var/www/public/html/drums
|
|
||||||
cp ./public /var/www/public/html/drums
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user