Skip to content

Commit 1faf4c2

Browse files
Update Jenkinsfile
1 parent 0091118 commit 1faf4c2

File tree

1 file changed

+13
-41
lines changed

1 file changed

+13
-41
lines changed

Jenkinsfile

Lines changed: 13 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,17 @@
11
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..."
2+
agents any
3+
{
4+
stages{
5+
stage("build"){
6+
steps{
7+
echo "Build Stage"
8+
}
299
}
10+
stage("test"){
11+
steps{
12+
echo "Test Stage"
13+
}
3014
}
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-
}
15+
}
16+
}
4517
}

0 commit comments

Comments
 (0)