Skip to content

Commit a21c87d

Browse files
author
petecarapetyan
committed
used better name for scripts
1 parent c02befb commit a21c87d

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

Jenkinsfile

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
node {
22

3-
4-
stage 'Stage 1'
5-
echo 'Hello Shell Scripts'
6-
stage 'Stage 2'
7-
checkout scm
8-
stage 'Stage 3'
9-
sh './dosomething.sh'
10-
stage 'Stage 4'
11-
sh './dosomethingelse.sh'
12-
13-
currentBuild.result = "SUCCESS"
14-
3+
stage 'Stage 1'
4+
echo 'Hello there, shell scripts'
5+
stage 'Checkout'
6+
git url: 'https://github.com/TTFHW/jenkins_pipeline_shell_scripts.git'
7+
stage 'Build'
8+
sh './myBuild.sh'
9+
stage 'Deploy'
10+
sh './myDeployment.sh'
1511

1612
}

dosomething.sh

-1
This file was deleted.

myBuild.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
echo "You built your project using this script!"

dosomethingelse.sh myDeployment.sh

File renamed without changes.

0 commit comments

Comments
 (0)