Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Team6-Digital Insight for Health
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chen Liang
Team6-Digital Insight for Health
Commits
70e43abc
Commit
70e43abc
authored
4 months ago
by
Burhan Akbar
Browse files
Options
Downloads
Patches
Plain Diff
Adjusting Jenkinsfile fix1...
parent
2b2d6a9e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+5
-1
5 additions, 1 deletion
Jenkinsfile
with
5 additions
and
1 deletion
Jenkinsfile
+
5
−
1
View file @
70e43abc
...
...
@@ -57,9 +57,13 @@ pipeline {
echo "Changing directory to ~/healthcare"
cd ~/healthcare &&
echo "Attempting docker-compose down..."
/usr/bin/docker-compose down || echo "Compose down failed or had nothing to do."
# Added --remove-orphans just in case, though likely not needed here
/usr/bin/docker-compose down --remove-orphans || echo "Compose down failed or had nothing to do."
echo "Attempting docker system prune..."
docker system prune -f && echo "Prune successful." || echo "Prune failed."
echo "Attempting to remove existing application image..."
# Force remove the specific image to bypass cache
docker rmi healthcare_healthcare_01 || echo "Image removal failed or image not found."
echo "Attempting docker-compose up with --build..."
/usr/bin/docker-compose -f docker-compose.yml up -d --build && echo "Compose up command issued." || echo "Compose up command failed."
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment