forked from pkocsis/JavaFTD2XX
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
41 lines (40 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
37
38
39
40
41
pipeline {
agent any
environment {
CI = 'JENKINS'
MAVEN_PARAMS = """ "-B" "-Dmaven.repo.local=${env.WORKSPACE}/.m2" "-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2" """
}
tools {
jdk 'JAVA17'
maven 'Maven-latest'
}
stages {
stage('Prepare') {
steps {
powershell """echo "MAVEN PARAMS = ${env.MAVEN_PARAMS}" """
powershell """Remove-Item -Recurse -Force ${env.WORKSPACE}/.m2/com/ftdi """
}
}
stage('Build') {
steps {
// build complete project
withMaven(maven: 'Maven-latest', mavenSettingsConfig: 'ff527448-d24e-4936-9144-9ff616279b7c') {
dir("${env.WORKSPACE}") {
powershell """mvn ${env.MAVEN_PARAMS} "clean" """
powershell """mvn ${env.MAVEN_PARAMS} "-P" "internal,update-native-libs" "install" "deploy" """
}
}
}
}
stage('Archive') {
steps {
archiveArtifacts '**/target/**/*.jar'
}
}
}
post {
always {
powershell """echo 'done'"""
}
}
}