From af89b535a6b2f8cd441645c646843c2d2ddac345 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 6 Apr 2025 21:47:33 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f0d75be..30bcb40 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,31 +21,25 @@ pipeline { stage('Install dependencies') { steps { - script { - sh 'npm install' // Install project dependencies - } + sh 'npm install' // Install project dependencies } } stage('Build') { 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') { steps { - script { - sh ''' - wrangler pages deploy ./build \ - --project-name $PROJECT_NAME \ - --branch main \ - --account-id $CLOUDFLARE_ACCOUNT_ID \ - --api-token $CLOUDFLARE_API_TOKEN + sh ''' + wrangler pages deploy ./build \ + --project-name $PROJECT_NAME \ + --branch main \ + --account-id $CLOUDFLARE_ACCOUNT_ID \ + --api-token $CLOUDFLARE_API_TOKEN ''' - } } } }