Compare commits

...

2 Commits

Author SHA1 Message Date
4028675dd0 Use NPX for running wrangler.
All checks were successful
thehideout/TheHideout-UI/pipeline/head This commit looks good
2026-01-02 23:01:05 +00:00
5003743720 Seperate out stages 2026-01-02 23:00:51 +00:00

12
Jenkinsfile vendored
View File

@ -1,17 +1,21 @@
def deploy() { def deploy() {
node('ubuntu') { node('ubuntu') {
try { try {
stage('Deploy (Ubuntu)') { checkout scm
checkout scm
nodejs(nodeJSInstallationName: 'Node23') { nodejs(nodeJSInstallationName: 'Node23') {
stage('Install') {
sh 'yarn install --frozen-lockfile --production=false' sh 'yarn install --frozen-lockfile --production=false'
}
stage('Build') {
sh 'NODE_ENV=production yarn build' sh 'NODE_ENV=production yarn build'
}
stage('Deploy') {
// Deploy to Cloudflare Pages using wrangler // Deploy to Cloudflare Pages using wrangler
withCredentials([string(credentialsId: 'th-cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) { withCredentials([string(credentialsId: 'th-cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) {
sh 'yarn wrangler pages deploy dist' sh 'npx wrangler pages deploy dist'
} }
} }
} }