feat: jenkins

This commit is contained in:
Araozu 2024-11-20 19:57:05 -05:00
parent 2b762239a9
commit 62fcfe0110

20
Jenkinsfile vendored
View File

@ -1,21 +1,31 @@
pipeline { pipeline {
agent {
docker {
image 'node:22'
}
}
stages { stages {
stage('Install pnpm') { stage('Install pnpm') {
agent {
docker {
image 'node:22'
}
}
steps { steps {
sh 'npm i -g pnpm' sh 'npm i -g pnpm'
} }
} }
stage('Install dependencies') { stage('Install dependencies') {
agent {
docker {
image 'node:22'
}
}
steps { steps {
sh 'pnpm i' sh 'pnpm i'
} }
} }
stage('Buid') { stage('Buid') {
agent {
docker {
image 'node:22'
}
}
steps { steps {
sh 'THP_BINARY=/var/bin/thp pnpm build' sh 'THP_BINARY=/var/bin/thp pnpm build'
} }