Skip to content

Commit d0cc6aa

Browse files
authored
Create Jenkinsfile
1 parent 8fe7992 commit d0cc6aa

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
pipeline {
2+
agent any
3+
stages {
4+
stage('Checkout') {
5+
steps {
6+
echo 'Checkout completed'
7+
}
8+
}
9+
stage('Static-test') {
10+
steps {
11+
echo 'Running static tests on code'
12+
}
13+
}
14+
stage('Build') {
15+
when {
16+
branch "master"
17+
}
18+
steps {
19+
sh 'echo "Building the code"'
20+
}
21+
}
22+
stage('Deploy') {
23+
steps {
24+
echo 'Deploying into environment'
25+
}
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)