mirror of
https://github.com/jarulsamy/Plex-Bot.git
synced 2024-08-19 15:01:55 +02:00
🐛 Add appropiate steps for docker build
This commit is contained in:
parent
21c6bcc746
commit
257ea91c4c
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -35,7 +35,7 @@ pipeline {
|
|||||||
echo "Style check"
|
echo "Style check"
|
||||||
sh ''' source /var/lib/jenkins/miniconda3/etc/profile.d/conda.sh
|
sh ''' source /var/lib/jenkins/miniconda3/etc/profile.d/conda.sh
|
||||||
conda activate ${BUILD_TAG}
|
conda activate ${BUILD_TAG}
|
||||||
pylint CHANGE_ME || true
|
pylint PlexBot || true
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -49,9 +49,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh ''' source /var/lib/jenkins/miniconda3/etc/profile.d/conda.sh
|
sh ''' source /var/lib/jenkins/miniconda3/etc/profile.d/conda.sh
|
||||||
conda activate ${BUILD_TAG}
|
conda activate ${BUILD_TAG}
|
||||||
pwd
|
docker build .
|
||||||
ls
|
|
||||||
python setup.py bdist_wheel
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
@ -68,14 +66,7 @@ pipeline {
|
|||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
sh 'conda remove --yes -n ${BUILD_TAG} --all'
|
sh 'conda remove --yes -n ${BUILD_TAG} --all'
|
||||||
}
|
sh 'docker system prune -a -f'
|
||||||
failure {
|
|
||||||
emailext (
|
|
||||||
subject: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
|
|
||||||
body: """<p>FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':</p>
|
|
||||||
<p>Check console output at "<a href='${env.BUILD_URL}'>${env.JOB_NAME} [${env.BUILD_NUMBER}]</a>"</p>""",
|
|
||||||
recipientProviders: [[$class: 'DevelopersRecipientProvider']]
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user