From 50cdc699f41bcd4bf27b95fb845af2c846084dd1 Mon Sep 17 00:00:00 2001 From: Taylor Christie Date: Wed, 11 Aug 2021 09:30:47 -0600 Subject: [PATCH] [QUANT-987] Added jenkinsfile for CI/CD --- Jenkinsfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..5eef75c --- /dev/null +++ b/Jenkinsfile @@ -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}" + } + } + } +} \ No newline at end of file