thp-lang.org/Jenkinsfile.groovy
2023-10-25 21:02:47 -05:00

31 lines
776 B
Groovy

pipeline {
agent any
environment {
PATH = "/var/lib/jenkins/.bun/bin:/var/lib/jenkins/bin:${env.PATH}"
}
stages {
stage('Test env') {
steps {
echo 'Testing...'
echo 'Is Bun working?...'
sh 'bun --version'
}
}
stage('Install') {
steps {
sh 'bun install -p'
}
}
stage('Build') {
environment {
PATH = "${env.WORKSPACE}/node_modules/.bin:${env.PATH}"
}
steps {
sh 'echo $PATH'
sh 'ls ${env.WORKSPACE}/node_modules/.bin'
sh 'bun tailwind:build'
sh 'md-docs'
}
}
}
}