Files
double-pendulum/Jenkinsfile
T
prorail 0d04ed5f12
gitea/double-pendulum/pipeline/head This commit looks good
build: Alle inhoud van de pkg folder kopiëren, niet het hele ding
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()
}
}
}