[QUANT-987] Added jenkinsfile for CI/CD
This commit is contained in:
parent
36e6ecb824
commit
50cdc699f4
25
Jenkinsfile
vendored
Normal file
25
Jenkinsfile
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
def label = "docker-${UUID.randomUUID().toString()}"
|
||||
|
||||
podTemplate(label: label, inheritFrom: 'base') {
|
||||
node(label) {
|
||||
stage('Checkout Repository') {
|
||||
container('base') {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
|
||||
stage('Login to Dockerhub') {
|
||||
withCredentials([usernamePassword(credentialsId: 'DockerHubAccessYardstick', usernameVariable: 'USER', passwordVariable: 'PASS')]) {
|
||||
container('base') {
|
||||
sh "docker login --username ${USER} --password ${PASS}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Docker image') {
|
||||
container('base') {
|
||||
sh "make display full branch=${BRANCH_NAME}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user