Added Jenkinsfile
All checks were successful
thehideout/TheHideout-API/pipeline/head This commit looks good

This commit is contained in:
Tom Butcher 2026-01-02 23:06:05 +00:00
parent 25772bfe26
commit d85111c863

25
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,25 @@
def deploy() {
node('ubuntu') {
try {
checkout scm
nodejs(nodeJSInstallationName: 'Node23') {
stage('Install') {
sh 'yarn install --frozen-lockfile --production=false'
}
stage('Deploy') {
// Deploy to Cloudflare Workers using wrangler
withCredentials([string(credentialsId: 'th-cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) {
sh 'yarn deploy'
}
}
}
} finally {
cleanWs()
}
}
}
deploy()