forked from kuisathaverat/TestSSLServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
24 lines (24 loc) · 802 Bytes
/
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
/**
Workfow to download and execute a SSL Test connexion
@author kuisatahverat
**/
env.targetHost = targetHost
node () {
stage ('Env'){
sh 'export'
}
stage ('Download sources'){
tool name: 'Default', type: 'hudson.plugins.git.GitTool'
git 'https://github.com/kuisathaverat/TestSSLServer.git'
}
stage ('Compile sources'){
//tool name: 'maven3', type: 'hudson.tasks.Maven$MavenInstallation'
sh 'mvn clean compile'
}
stage ('Execute Test SSL support features'){
sh 'mvn -Djavax.net.debug=ssl:handshake -Dexec.mainClass=org.bolet.TestSSLServer -Dexec.args=${targetHost} exec:java'
}
stage ('Execute Test SSL handshake'){
sh 'mvn -Djavax.net.debug=ssl:handshake -Dexec.mainClass=org.bolet.TestSSLHandShake -Dexec.args=https://${targetHost} exec:java'
}
}