-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline_config.groovy
43 lines (39 loc) · 1.27 KB
/
pipeline_config.groovy
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
def APP_NAME = "digator-opennlp"
def APP_REPO = "https://github.com/livelace/digator-opennlp.git"
def APP_VERSION = "${env.VERSION}-${env.OPENNLP_VERSION}"
def GIT_VERSION = env.VERSION + '-${GIT_COMMIT_SHORT}-' + env.OPENNLP_VERSION
libraries {
dependency_check
dependency_track {
input = "target/dependency-track.xml"
project = "${APP_NAME}"
version = "${APP_VERSION}"
}
git {
repo_url = "${APP_REPO}"
repo_branch = env.VERSION
}
/*harbor_replicate {
policy = "${APP_NAME}"
}*/
k8s_build {
image = "harbor-core.k8s-2.livelace.ru/dev/jvm:latest"
volume = """
build1-opennlp-storage-shared, data/opennlp, ro
"""
}
kaniko {
destination = "data/${APP_NAME}:${APP_VERSION}"
options = "--build-arg OPENNLP_VERSION=${env.OPENNLP_VERSION} --build-arg MODEL_GENERATION=${env.MODEL_GENERATION}"
}
maven {
options = "-Dquarkus.application.version=${GIT_VERSION} -Dquarkus.package.type=uber-jar -Dopennlp.version=${env.OPENNLP_VERSION}"
}
mattermost
nexus {
source = "target/digator-opennlp-1.0-SNAPSHOT-runner.jar"
destination = "dists-internal/${APP_NAME}/digator-opennlp-${APP_VERSION}.jar"
}
sonarqube
utils
}