From e6c4b8453869b4378ca2bf0eb4bc16fa219d6873 Mon Sep 17 00:00:00 2001 From: The Codacy Badger Date: Mon, 10 Aug 2020 08:42:13 +0000 Subject: [PATCH 1/2] Add Codacy badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8580acf..fba03ea 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Plex-Bot +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c93b8ff976ce4205a95046487917476b)](https://app.codacy.com/manual/jarulsamy/Plex-Bot?utm_source=github.com&utm_medium=referral&utm_content=jarulsamy/Plex-Bot&utm_campaign=Badge_Grade_Dashboard) [![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](http://perso.crans.org/besson/LICENSE.html) ![docker pulls](https://img.shields.io/docker/pulls/jarulsamy/plex-bot) ![docker img size](https://img.shields.io/docker/image-size/jarulsamy/plex-bot) From cf2bc24f8aa12dc944e2eff1f5c14a5e150db676 Mon Sep 17 00:00:00 2001 From: Joshua Arulsamy Date: Mon, 10 Aug 2020 03:02:22 -0600 Subject: [PATCH 2/2] :bug: Fix always skip push --- Jenkinsfile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e844538..3a8472c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,6 +25,7 @@ pipeline { sh ''' conda create --yes -n ${BUILD_TAG} python source /var/lib/jenkins/miniconda3/etc/profile.d/conda.sh conda activate ${BUILD_TAG} + pip install -r requirements.txt pip install pylint ''' } @@ -47,18 +48,10 @@ pipeline { } } steps { - sh ''' source /var/lib/jenkins/miniconda3/etc/profile.d/conda.sh - conda activate ${BUILD_TAG} - ./deploy/build.sh - ''' + sh './deploy/build.sh' } } stage('Push Image') { - when { - expression { - currentBuild.result == 'SUCCESS' - } - } steps { sh './deploy/push.sh' }