Add first Jenkinsfile
parent
ba96d93a8b
commit
7b5e2abe2a
|
@ -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 .")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue