Add first Jenkinsfile

develop-jenkins
Nicolas Arenas 2024-10-22 20:17:08 +02:00
parent ba96d93a8b
commit 7b5e2abe2a
1 changed files with 28 additions and 0 deletions

28
ogWebconsole/Jenkinsfile vendored 100644
View File

@ -0,0 +1,28 @@
pipeline {
agent {
jenkins-slave
}
environment {
DOCKER_REGISTRY = "opengnsys"
DOCKER_CREDENTIALS = credentials('DOCKER_HUB_TOKEN')
DOCKER_TAG = "${env.BUILD_NUMBER}"
DOCKER_IMAGE_NAME = "oggui"
}
stages {
stage ('Checkout') {
steps {
checkout scm
}
}
stage('Build') {
steps {
echo 'Building....'
script {
dir('ogWebconsole') {
docker.build("${DOCKER_IMAGE_NAME}:${DOCKER_TAG}", "-f Dockerfile .")
}
}
}
}
}
}