-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
35 lines (32 loc) · 1.02 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
pipeline {
agent {
label 'slave'
}
stages {
stage('Publish Archives') {
when {
branch 'master'
}
agent {
docker {
registryUrl 'https://repository.hosting.ebf.de'
registryCredentialsId 'credentials-repository-hosting-id'
image 'repository.hosting.ebf.de/ebfdev/eclipse-temurin:17-jdk-alpine'
args '-u root:root'
reuseNode true
}
}
steps {
configFileProvider([configFile(
fileId: '2948ab4c-9add-401f-9bda-d22642238c6e',
variable: 'MAVEN_SETTINGS'
)]) {
echo '----------------------------------------------------------------------------------------'
echo 'Publish Archives'
echo '----------------------------------------------------------------------------------------'
sh "./gradlew -Dmaven.settings=$MAVEN_SETTINGS publish"
}
}
}
}
}