Add a jenkinsfile for Jenkins CI build (#41)

This commit is contained in:
Rene Cordier
2025-07-22 16:55:08 +07:00
committed by GitHub
parent 6fb910d6e2
commit 2e9f9041f8
Vendored
+35
View File
@@ -0,0 +1,35 @@
pipeline {
agent any
environment {
DOCKER_HUB_CREDENTIAL = credentials('dockerHub')
}
tools {
nodejs 'nodejs_24'
}
options {
// Configure an overall timeout for the build.
timeout(time: 1, unit: 'HOURS')
disableConcurrentBuilds()
}
stages {
stage('Compile') {
steps {
sh 'npm install'
}
}
stage('Test') {
steps {
sh 'npm run test'
}
}
}
post {
always {
deleteDir() /* clean up our workspace */
}
}
}