Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Committing Jenkinsfile
  • Loading branch information
CodeBabel authored Jan 4, 2019
commit 484a594663b6e54dd64ef106f4c127744ffddd36
30 changes: 30 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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"""

}
}