Files
double-pendulum/Jenkinsfile
T
Philippe Zwietering 463fac575a
gitea/double-pendulum/pipeline/head This commit looks good
build: Release vlag voor cargo check
2026-09-08 17:31:59 +02:00

46 lines
927 B
Groovy

pipeline {
agent any
stages {
stage('Check') {
steps {
sh 'cargo check -r --target wasm32-unknown-unknown'
sh 'cargo tree -e features --target wasm32-unknown-unknown'
}
}
stage('Build') {
steps {
sh 'wasm-pack build --target web'
archiveArtifacts artifacts: 'pkg/'
}
}
stage('Build docs') {
steps {
sh 'cargo doc'
archiveArtifacts artifacts: 'target/doc/'
}
}
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'
}
}
stage('Deploy docs') {
steps {
sh 'cp -r ./target/doc/ /var/www/zwietering.eu/projects/double-pendulum'
}
}
}
post {
cleanup {
cleanWs()
}
}
}