Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

added some changes in Jenkinsfile #173

wants to merge 8 commits into from

Conversation

AbhilashKD
Copy link
Collaborator

No description provided.

sh '''
docker build -t $docker_server/$docker_repo:latest .
'''
} else if (env.BRANCH_NAME == 'main' || env.BRANCH_NAME == 'staging'){
Copy link
Collaborator

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 ?

Copy link
Collaborator Author

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

Copy link
Collaborator

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.

Copy link
Collaborator Author

@AbhilashKD AbhilashKD May 4, 2023

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
?

build/Jenkinsfile Outdated Show resolved Hide resolved
Copy link
Collaborator Author

@AbhilashKD AbhilashKD left a 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

@tushar5526
Copy link
Collaborator

LGTM

@tushar5526
Copy link
Collaborator

Please fix the merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants