| Step | Arguments | Status | ||
|---|---|---|---|---|
| Start of Pipeline - (8 min 46 sec in block) | ||||
| node - (8 min 44 sec in block) | ||||
| node block - (8 min 43 sec in block) | ||||
| stage - (2.2 sec in block) | Declarative: Checkout SCM | |||
| stage block (Declarative: Checkout SCM) - (2 sec in block) | ||||
| checkout - (1.8 sec in self) | ||||
| withEnv - (8 min 41 sec in block) | GIT_BRANCH, GIT_COMMIT, GIT_PREVIOUS_COMMIT, GIT_URL | |||
| withEnv block - (8 min 41 sec in block) | ||||
| withEnv - (8 min 41 sec in block) | DEPLOY_DIR, COMPOSE_PROJECT_NAME | |||
| withEnv block - (8 min 41 sec in block) | ||||
| stage - (0.76 sec in block) | Prepare Deploy Directory | |||
| stage block (Prepare Deploy Directory) - (0.56 sec in block) | ||||
| echo - (59 ms in self) | Preparing deployment directory on host... | |||
| sh - (0.34 sec in self) | # Create deploy directory if it doesn't exist mkdir -p ${DEPLOY_DIR} # Copy files to deploy directory (excluding .git) find ${WORKSPACE} -mindepth 1 -maxdepth 1 ! -name '.git' -exec cp -r {} ${DEPLOY_DIR}/ \; | |||
| stage - (7 min 29 sec in block) | Build Images | |||
| stage block (Build Images) - (7 min 29 sec in block) | ||||
| echo - (58 ms in self) | Building Docker images... | |||
| sh - (7 min 29 sec in self) | cd ${DEPLOY_DIR} docker-compose build --no-cache | |||
| stage - (0.57 sec in block) | Stop Old Containers | |||
| stage block (Stop Old Containers) - (0.43 sec in block) | ||||
| echo - (32 ms in self) | Stopping old containers... | |||
| sh - (0.31 sec in self) | cd ${DEPLOY_DIR} docker-compose down || true | |||
| stage - (49 sec in block) | Start New Containers | |||
| stage block (Start New Containers) - (49 sec in block) | ||||
| echo - (34 ms in self) | Starting new containers... | |||
| sh - (49 sec in self) | cd ${DEPLOY_DIR} docker-compose up -d | |||
| stage - (19 sec in block) | Health Check | |||
| stage block (Health Check) - (18 sec in block) | ||||
| echo - (88 ms in self) | Running health checks... | |||
| sh - (18 sec in self) | # Wait for services to start sleep 15 # Check backend echo "Checking backend health..." docker exec juntete-backend-1 curl -f http://localhost:8000/health || exit 1 # Check frontend echo "Checking frontend health..." curl -f http://192.168.1.124:3002 || exit 1 echo "All services are healthy!" | |||
| stage - (1.5 sec in block) | Declarative: Post Actions | |||
| stage block (Declarative: Post Actions) - (1.4 sec in block) | ||||
| echo - (68 ms in self) | Pipeline execution completed | |||
| sh - (1.1 sec in self) | if [ -d "${DEPLOY_DIR}" ]; then cd ${DEPLOY_DIR} echo "Container status:" docker-compose ps || true echo "Recent logs (backend):" docker-compose logs --tail=20 backend || true echo "Recent logs (frontend):" docker-compose logs --tail=20 frontend || true else echo "Deploy directory not found (first run?)" fi | |||
| echo - (50 ms in self) | Deployment failed. Check logs above. |