Try fixing Jenkins.

This commit is contained in:
emil28092005
2026-01-16 21:08:46 +03:00
parent cbc6ff04f6
commit 7db2a78c0b
2 changed files with 6 additions and 4 deletions
Vendored
+4 -3
View File
@@ -3,6 +3,7 @@ pipeline{
stages{ stages{
stage('Checkout') { stage('Checkout') {
steps { steps {
deleteDir()
git url: 'https://github.com/emil28092005/shagram.git', branch: 'main' git url: 'https://github.com/emil28092005/shagram.git', branch: 'main'
} }
} }
@@ -22,9 +23,9 @@ pipeline{
steps { steps {
echo 'Deploying...' echo 'Deploying...'
sh ''' sh '''
docker-compose down || true docker compose down || true
docker-compose up -d docker compose up -d
docker-compose ps docker compose ps
''' '''
} }
} }
+2 -1
View File
@@ -6,9 +6,10 @@ services:
- "8080:8080" - "8080:8080"
- "50000:50000" - "50000:50000"
volumes: volumes:
- jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker - /usr/bin/docker:/usr/bin/docker
- /usr/libexec/docker/cli-plugins:/usr/libexec/docker/cli-plugins:ro
- jenkins_home:/var/jenkins_home
- /opt/shagram:/workspace - /opt/shagram:/workspace
environment: environment:
- DOCKER_HOST=unix:///var/run/docker.sock - DOCKER_HOST=unix:///var/run/docker.sock