-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added some changes in Jenkinsfile #173
base: main
Are you sure you want to change the base?
Conversation
build/Jenkinsfile
Outdated
sh ''' | ||
docker build -t $docker_server/$docker_repo:latest . | ||
''' | ||
} else if (env.BRANCH_NAME == 'main' || env.BRANCH_NAME == 'staging'){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the logic here, and why for both main and staging? we are building latest tagged repo ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is written
if any changes happens at main branch then it will pickup the command mentioned in that and if any changes push on staging then it will take that changes
and also in last stage it will deploy it according to changes pushed to respective
branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For main, it will never go to the second if. Please walk through the if else logic once. Also verify the tags again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
but if it is for staging then ?
then it will go for 2nd na
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the typo error
LGTM |
Please fix the merge conflicts |
No description provided.