From 257ea91c4ca804c32512aa41a8b25292ca8760d6 Mon Sep 17 00:00:00 2001 From: Joshua Arulsamy Date: Sat, 8 Aug 2020 18:28:02 -0600 Subject: [PATCH] :bug: Add appropiate steps for docker build --- Jenkinsfile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4b1aac5..7f28ee8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,7 +35,7 @@ pipeline { echo "Style check" sh ''' source /var/lib/jenkins/miniconda3/etc/profile.d/conda.sh conda activate ${BUILD_TAG} - pylint CHANGE_ME || true + pylint PlexBot || true ''' } } @@ -49,9 +49,7 @@ pipeline { steps { sh ''' source /var/lib/jenkins/miniconda3/etc/profile.d/conda.sh conda activate ${BUILD_TAG} - pwd - ls - python setup.py bdist_wheel + docker build . ''' } post { @@ -68,14 +66,7 @@ pipeline { post { always { sh 'conda remove --yes -n ${BUILD_TAG} --all' - } - failure { - emailext ( - subject: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'", - body: """

FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':

-

Check console output at "${env.JOB_NAME} [${env.BUILD_NUMBER}]"

""", - recipientProviders: [[$class: 'DevelopersRecipientProvider']] - ) + sh 'docker system prune -a -f' } } }