Skip to content
Snippets Groups Projects
Commit 438852e9 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2651 add maven wrapper; use ./mvnw to package

parent 2e5c4bbf
No related branches found
No related tags found
No related merge requests found
File added
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar
...@@ -81,7 +81,11 @@ pipeline { ...@@ -81,7 +81,11 @@ pipeline {
withCredentials([usernamePassword(credentialsId: 'jenkins-docker-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) { withCredentials([usernamePassword(credentialsId: 'jenkins-docker-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) {
sh 'docker login docker.ozg-sh.de -u ${USER} -p ${PASSWORD}' sh 'docker login docker.ozg-sh.de -u ${USER} -p ${PASSWORD}'
sh 'docker build -f Dockerfile.native -t docker.ozg-sh.de/user-manager:build-latest .' sh './mvnw -s $MAVEN_SETTINGS clean package -Pnative -DskipTests'
sh 'docker build -f src/main/docker/Dockerfile.native -t docker.ozg-sh.de/user-manager:build-latest .'
//sh './mvnw -s $MAVEN_SETTINGS verify -Pnative'
sleep time: 10000, unit: 'MILLISECONDS'
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment