Skip to content

Commit 4a53639

Browse files
Add files via upload
1 parent c3a9ba6 commit 4a53639

File tree

5 files changed

+106
-0
lines changed

5 files changed

+106
-0
lines changed

Jenkins/Jenkins.pptx

462 KB
Binary file not shown.

Jenkins/JenkinsCodeFile.pptx

1.29 MB
Binary file not shown.

Jenkins/Jenkinsfile

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
pipeline {
2+
agent any
3+
stages {
4+
stage('One') {
5+
steps {
6+
echo 'Hi, this is Zulaikha from devops'
7+
}
8+
}
9+
stage('Two') {
10+
steps {
11+
input('Do you want to proceed?')
12+
}
13+
}
14+
stage('Three') {
15+
when {
16+
not {
17+
branch "master"
18+
}
19+
}
20+
steps {
21+
echo "Hello"
22+
}
23+
}
24+
stage('Four') {
25+
parallel {
26+
stage('Unit Test') {
27+
steps {
28+
echo "Running the unit test..."
29+
}
30+
}
31+
stage('Integration test') {
32+
agent {
33+
docker {
34+
reuseNode true
35+
image 'ubuntu'
36+
}
37+
}
38+
steps {
39+
echo "Running the integration test..."
40+
}
41+
}
42+
}
43+
}
44+
}
45+
}

Jenkins/Pipeline.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
pipeline {
2+
agent any
3+
stages {
4+
stage('One') {
5+
steps {
6+
echo 'Hi, this is Zulaikha from devops'
7+
}
8+
}
9+
stage('Two') {
10+
steps {
11+
input('Do you want to proceed?')
12+
}
13+
}
14+
stage('Three') {
15+
when {
16+
not {
17+
branch "master"
18+
}
19+
}
20+
steps {
21+
echo "Hello"
22+
}
23+
}
24+
stage('Four') {
25+
parallel {
26+
stage('Unit Test') {
27+
steps {
28+
echo "Running the unit test..."
29+
}
30+
}
31+
stage('Integration test') {
32+
agent {
33+
docker {
34+
reuseNode true
35+
image 'ubuntu'
36+
}
37+
}
38+
steps {
39+
echo "Running the integration test..."
40+
}
41+
}
42+
}
43+
}
44+
}
45+
}

Jenkins/scriptPipeline

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
node {
2+
for (i=0; i<2; i++) {
3+
stage "Stage #"+i
4+
print 'Hello, world !'
5+
if (i==0)
6+
{
7+
git "https://github.com/onlineTrainingguy/MyProj.git"
8+
echo 'Running on Stage #0'
9+
}
10+
else {
11+
echo 'Declarative pipeline'
12+
echo 'Running on Stage #1'
13+
}
14+
}
15+
}
16+

0 commit comments

Comments
 (0)