Update Jenkinsfile
Some checks failed
tombutcher.work/tombutcher-ui/pipeline/head There was a failure building this commit
Some checks failed
tombutcher.work/tombutcher-ui/pipeline/head There was a failure building this commit
This commit is contained in:
parent
1f0789e8eb
commit
af89b535a6
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -21,23 +21,18 @@ pipeline {
|
|||||||
|
|
||||||
stage('Install dependencies') {
|
stage('Install dependencies') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
|
||||||
sh 'npm install' // Install project dependencies
|
sh 'npm install' // Install project dependencies
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
|
||||||
sh 'npm ls vite && npm run build' // Build the project
|
sh 'npm ls vite && npm run build' // Build the project
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stage('Deploy to Cloudflare Pages') {
|
stage('Deploy to Cloudflare Pages') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
|
||||||
sh '''
|
sh '''
|
||||||
wrangler pages deploy ./build \
|
wrangler pages deploy ./build \
|
||||||
--project-name $PROJECT_NAME \
|
--project-name $PROJECT_NAME \
|
||||||
@ -48,7 +43,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
post {
|
post {
|
||||||
failure {
|
failure {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user