From 5a951d8c905b0797a85b295dc831f725baba5059 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Fri, 2 Jan 2026 22:56:20 +0000 Subject: [PATCH] Added Jenkinsfile. --- Jenkinsfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..1505701 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,25 @@ +def deploy() { + node('ubuntu') { + try { + stage('Deploy (Ubuntu)') { + checkout scm + + nodejs(nodeJSInstallationName: 'Node23') { + sh 'yarn install --frozen-lockfile --production=false' + + sh 'NODE_ENV=production yarn build' + + // Deploy to Cloudflare Pages using wrangler + withCredentials([string(credentialsId: 'th-cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) { + sh 'yarn wrangler pages deploy dist' + } + } + } + } finally { + cleanWs() + } + } +} + +deploy() +