Skip to content

Commit 4825955

Browse files
authored
Committing Jenkinsfile
1 parent 5d3c5d3 commit 4825955

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Jenkinsfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
node
2+
{
3+
stage('checkout')
4+
{
5+
checkout scm
6+
}
7+
stage('deploy')
8+
{
9+
echo 'branch name ' + env.BRANCH_NAME
10+
11+
if (env.BRANCH_NAME.startsWith("Feature_"))
12+
{
13+
echo "Deploying to Dev environment after build"
14+
}
15+
16+
else if (env.BRANCH_NAME.startsWith("Release_"))
17+
{
18+
echo "Deploying to Stage after build and Dev Deployment"
19+
}
20+
21+
else if (env.BRANCH_NAME.startsWith("master"))
22+
{
23+
echo "Deploying to PROD environment"
24+
}
25+
26+
sh """chmod +x HelloWorld.sh
27+
./HelloWorld.sh"""
28+
29+
}
30+
}

0 commit comments

Comments
 (0)