Tom Butcher a16c83967d
Some checks failed
tombutcher.work/tombutcher-auth/pipeline/head There was a failure building this commit
ci / test (push) Has been cancelled
ci / Check if version upgrade (push) Has been cancelled
ci / create_github_release (push) Has been cancelled
Added Maven install
2025-04-07 00:28:14 +01:00

56 lines
1022 B
Groovy

pipeline {
agent any
environment {
NODE_ENV = 'production'
PROJECT_NAME = 'tombutcher-auth'
}
tools {
nodejs 'Node23' // This should match the name of your NodeJS installation in Jenkins tools
maven 'Maven3.9'
}
stages {
stage('Checkout') {
steps {
checkout scm // Checkout the repository
}
}
stage('Install dependencies') {
steps {
sh 'npm install --include dev' // Install project dependencies
}
}
stage('Build') {
steps {
sh 'npm run build' // Install project dependencies
}
}
stage('Build theme') {
steps {
sh 'npx keycloakify build' // Install project dependencies
}
}
stage('Archive Artifacts') {
steps {
archiveArtifacts artifacts: 'dist_keycloak/*.jar', fingerprint: true
}
}
}
post {
failure {
echo 'Build or deployment failed.'
}
success {
echo 'Successfully deployed to Cloudflare Pages.'
}
}
}