-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
51 lines (34 loc) · 1003 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
pipeline {
agent any
stages {
stage('RUN JFROG CLI') {
steps {
sh '''rm -rf ~/.m2/repository/dk/ignalina/lab/
'''
}
}
stage('Pararell') {
parallel {
stage('spark3.0.1') {
steps {
sh '''export M2_HOME=/usr/share/java/maven-3
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
gpg --list-keys
cd spark301job-mod
pwd
mvn clean install -U
export VER=0.0.55
mvn deploy:deploy-file -Durl=https://nexus.x14.se/repository/maven-releases -Dfile=target/welder-spark-job-${VER}.jar -DgroupId=dk.ignalina.lab.spark301 -DartifactId=welder-spark-job -Dpackaging=jar -Dversion=${VER} -DrepositoryId=x14-repo
scp ../infra/submit_eventdriven301.sh [email protected]:/home/spark/
ssh [email protected] \'cd /home/spark ; chmod +x submit_eventdriven301.sh; ./submit_eventdriven301.sh\'
'''
}
}
}
}
}
environment {
JFROG_CLI_BUILD_NAME = 'JOB_NAME'
JFROG_CLI_BUILD_NUMBER = 'BUILD_NUMBER'
}
}