thp-lang.org/Jenkinsfile.groovy

30 lines
591 B
Groovy
Raw Normal View History

2023-10-26 01:51:20 +00:00
pipeline {
2024-10-04 20:54:44 +00:00
agent {
2024-10-04 22:08:55 +00:00
docker {
2024-10-04 22:21:01 +00:00
image 'node:22'
2024-10-04 22:08:55 +00:00
}
2023-10-26 01:51:20 +00:00
}
stages {
2024-10-05 00:20:52 +00:00
stage('Clone Repository') {
steps {
git url: 'http://gitea:3333/fernando/thp-web.git', branch: 'master'
}
}
2024-10-04 22:21:01 +00:00
stage('Install pnpm') {
steps {
sh 'npm i -g pnpm'
}
}
2024-10-04 22:08:55 +00:00
stage('Install dependencies') {
steps {
2024-10-05 00:09:01 +00:00
sh 'pnpm i'
2024-10-04 22:08:55 +00:00
}
}
stage('Buid') {
2023-10-26 01:53:43 +00:00
steps {
2024-10-04 23:56:19 +00:00
sh 'npm build'
2023-10-26 02:10:48 +00:00
}
}
2023-10-26 01:51:20 +00:00
}
2024-10-04 20:54:44 +00:00
}