Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
hé nsm
Browse files Browse the repository at this point in the history
  • Loading branch information
khylpe committed Aug 22, 2024
1 parent fda32b7 commit 7732926
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,27 +87,27 @@ pipeline {
post {
success {
echo 'Build and tests succeeded!'
sh 'docker-compose down'
// sh 'docker-compose down'

// Deploy the application

dir('/srv/aio-tools/ressources_relationnelles') {
echo 'Build and tests succeeded!'
sh '''
if [ ! -d "/srv/aio-tools/ressources_relationnelles@tmp" ]; then
mkdir -p /srv/aio-tools/ressources_relationnelles@tmp
chown -R jenkins:jenkins /srv/aio-tools/ressources_relationnelles@tmp
fi
'''
// dir('/srv/aio-tools/ressources_relationnelles') {
// echo 'Build and tests succeeded!'
// sh '''
// if [ ! -d "/srv/aio-tools/ressources_relationnelles@tmp" ]; then
// mkdir -p /srv/aio-tools/ressources_relationnelles@tmp
// chown -R jenkins:jenkins /srv/aio-tools/ressources_relationnelles@tmp
// fi
// '''

sh '''
docker-compose down
git fetch
git checkout jenkins
git pull
docker-compose up --build -d
'''
}
// sh '''
// docker-compose down
// git fetch
// git checkout jenkins
// git pull
// docker-compose up --build -d
// '''
// }

}
failure {
Expand Down

0 comments on commit 7732926

Please sign in to comment.