Files
double-pendulum/Jenkinsfile
T
2026-09-08 16:48:15 +02:00

32 lines
559 B
Groovy

pipeline {
agent any
stages {
stage('Check') {
steps {
sh 'cargo check'
}
}
stage('Build') {
steps {
sh 'wasm-pack build --target web'
archiveArtifacts artifacts: 'pkg/'
}
}
stage('Deploy') {
steps {
sh 'rm -r /var/www/zwietering.eu/projects/double-pendulum'
sh 'mkdir /var/www/zwietering.eu/projects/double-pendulum'
sh 'cp -r ./pkg/* /var/www/zwietering.eu/projects/double-pendulum'
}
}
}
post {
cleanup {
cleanWs()
}
}
}