mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 00:45:50 +00:00
variables
This commit is contained in:
parent
ac0322be36
commit
eab11af5d7
1 changed files with 7 additions and 17 deletions
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
|
@ -1,11 +1,11 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
environment {
|
parameters {
|
||||||
NEXUS_VERSION = "nexus3"
|
string(NEXUS_VERSION: 'nexus3')
|
||||||
NEXUS_PROTOCOL = "http"
|
string(NEXUS_PROTOCOL: 'http')
|
||||||
NEXUS_URL = "172.19.0.3:8081"
|
string(NEXUS_URL: '172.19.0.3:8081')
|
||||||
NEXUS_REPOSITORY = "maven-nexus-repo"
|
string(NEXUS_REPOSITORY: 'maven-nexus-repo')
|
||||||
NEXUS_CREDENTIAL_ID = "e6072e08-87bc-481e-9e4a-55d506546356"
|
string(NEXUS_CREDENTIAL_ID: 'e6072e08-87bc-481e-9e4a-55d506546356')
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('pull') {
|
stage('pull') {
|
||||||
|
@ -36,17 +36,7 @@ pipeline {
|
||||||
if(artifactExists) {
|
if(artifactExists) {
|
||||||
echo "*** File: ${artifactPath}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
|
echo "*** File: ${artifactPath}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
|
||||||
|
|
||||||
def nexusArtifactUploader(
|
def nexusArtifactUploader( ${NEXUS_VERSION}, ${NEXUS_PROTOCOL}, ${NEXUS_URL}, pom.groupId, pom.version, ${NEXUS_REPOSITORY}, ${NEXUS_CREDENTIAL_ID}, artifacts: [ [artifactId: pom.artifactId, classifier: '',
|
||||||
${NEXUS_VERSION},
|
|
||||||
${NEXUS_PROTOCOL},
|
|
||||||
${NEXUS_URL},
|
|
||||||
pom.groupId,
|
|
||||||
pom.version,
|
|
||||||
${NEXUS_REPOSITORY},
|
|
||||||
${NEXUS_CREDENTIAL_ID},
|
|
||||||
artifacts: [
|
|
||||||
[artifactId: pom.artifactId,
|
|
||||||
classifier: '',
|
|
||||||
file: artifactPath,
|
file: artifactPath,
|
||||||
type: pom.packaging],
|
type: pom.packaging],
|
||||||
[artifactId: pom.artifactId,
|
[artifactId: pom.artifactId,
|
||||||
|
|
Loading…
Reference in a new issue