[QUANT-987] Added jenkinsfile for CI/CD

This commit is contained in:
Taylor Christie 2021-08-11 09:30:47 -06:00
parent 36e6ecb824
commit 50cdc699f4

25
Jenkinsfile vendored Normal file
View 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}"
}
}
}
}