-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJENKINSFILE
36 lines (36 loc) · 1.01 KB
/
JENKINSFILE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//Jenkinsfile (Declarative Pipeline)
pipeline {
agent any
stages {
stage('Checkout') {
steps{
checkout scm
input message: "Does http://localhost:8888/staging/ look good?"
}
}
stage('Build') {
steps {
echo 'Starting the build Stage'
echo '===================================='
sh '''#!/bin/bash
javac HelloWorld.java
java HelloWorld
'''
echo '===================================='
echo 'Build Stage completed successfully'
}
}
stage('Test') {
steps {
echo 'Starting the Test Stage'
echo 'Test Stage completed successfully'
}
}
stage('Deploy') {
steps {
echo 'Starting the Deploy Stage'
echo 'Deploy Stage completed successfully'
}
}
}
}