Skip to content

Commit 62d4900

Browse files
committed
add Jenkinsfile
1 parent c992989 commit 62d4900

3 files changed

Lines changed: 44 additions & 2 deletions

File tree

Jenkinsfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
pipeline {
2+
3+
agent {
4+
kubernetes {
5+
yamlFile 'kubernetesPod.yaml'
6+
}
7+
}
8+
9+
options {
10+
buildDiscarder(logRotator(numToKeepStr: '3'))
11+
}
12+
13+
stages {
14+
15+
stage('build and deploy to nexus'){
16+
17+
steps {
18+
19+
container('maven') {
20+
21+
configFileProvider([configFile(fileId: 'maven-settings-rsb', variable: 'MAVEN_SETTINGS_RSB')]) {
22+
23+
sh 'mvn -s $MAVEN_SETTINGS_RSB -U clean install deploy'
24+
25+
}
26+
}
27+
}
28+
}
29+
}
30+
}

kubernetesPod.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
labels:
5+
some-label: containerproxy-build
6+
spec:
7+
containers:
8+
- name: maven
9+
image: maven:3-openjdk-8
10+
command:
11+
- cat
12+
tty: true

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
<snapshotRepository>
2626
<id>oa-nexus-snapshots</id>
2727
<name>OpenAnalytics Snapshots Repository</name>
28-
<url>http://nexus.openanalytics.eu/nexus/content/repositories/snapshots</url>
28+
<url>https://nexus.openanalytics.eu/nexus/content/repositories/snapshots</url>
2929
</snapshotRepository>
3030
<repository>
3131
<id>oa-nexus-releases</id>
3232
<name>OpenAnalytics Release Repository</name>
33-
<url>http://nexus.openanalytics.eu/nexus/content/repositories/releases</url>
33+
<url>https://nexus.openanalytics.eu/nexus/content/repositories/releases</url>
3434
</repository>
3535
</distributionManagement>
3636

0 commit comments

Comments
 (0)