2023-10-26 01:51:20 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
environment {
|
2023-10-26 01:56:46 +00:00
|
|
|
PATH = "/var/lib/jenkins/.bun/bin:/var/lib/jenkins/bin:${env.PATH}"
|
2023-10-26 01:51:20 +00:00
|
|
|
}
|
|
|
|
stages {
|
2023-10-26 01:56:46 +00:00
|
|
|
stage('Test env') {
|
2023-10-26 01:53:43 +00:00
|
|
|
steps {
|
|
|
|
echo 'Testing...'
|
|
|
|
echo 'Is Bun working?...'
|
|
|
|
sh 'bun --version'
|
|
|
|
}
|
2023-10-26 01:51:20 +00:00
|
|
|
}
|
2023-10-26 02:01:14 +00:00
|
|
|
stage('Install') {
|
2023-10-26 01:56:46 +00:00
|
|
|
steps {
|
2023-10-26 01:58:03 +00:00
|
|
|
sh 'bun install -p'
|
2023-10-26 02:01:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
|
|
|
environment {
|
|
|
|
PATH = "${env.WORKSPACE}/node_modules/.bin:${env.PATH}"
|
|
|
|
}
|
|
|
|
steps {
|
2023-10-26 02:02:03 +00:00
|
|
|
sh 'echo $PATH'
|
2023-10-26 02:02:47 +00:00
|
|
|
sh 'ls ${env.WORKSPACE}/node_modules/.bin'
|
2023-10-26 01:56:46 +00:00
|
|
|
sh 'bun tailwind:build'
|
|
|
|
sh 'md-docs'
|
|
|
|
}
|
|
|
|
}
|
2023-10-26 01:51:20 +00:00
|
|
|
}
|
|
|
|
}
|