Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions HelloWorld.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo "Hello World!!!"
31 changes: 31 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
node
{
stage('checkout')
{
checkout scm
}
stage('deploy')
{
echo 'branch name ' + env.BRANCH_NAME

if (env.BRANCH_NAME.startsWith("Feature_"))
{
echo "Deploying to Dev environment after build"
}

else if (env.BRANCH_NAME.startsWith("Release_"))
{
echo "Deploying to Stage after build and Dev Deployment"
}

else if (env.BRANCH_NAME.startsWith("master"))
{
echo "Deploying to PROD environment"
}

sh """chmod +x HelloWorld.sh
./HelloWorld.sh"""

}

}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# BranchingandMergingDemo
Repository to Demo Branching and Merging
test for pull request