Skip to content

Commit

Permalink
Add stagingDescription to nexus-release
Browse files Browse the repository at this point in the history
  • Loading branch information
definite committed Mar 1, 2018
1 parent 5f7793d commit 522241c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 95 deletions.
93 changes: 0 additions & 93 deletions zanata-nexus

This file was deleted.

3 changes: 2 additions & 1 deletion zanata-nexus-release
Expand Up @@ -36,6 +36,7 @@ print_status -t parsing -s "Start"

RepoName=$(repo_name_get)
ArtifactId=$(get_artifact_id $RepoName)
Version=$(./mvnw -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:exec)

MavenReleaseProfiles=$(get_artifact_var_value $ArtifactId maven_release_profiles)

Expand Down Expand Up @@ -126,7 +127,7 @@ fi
run_maven(){
local goal=$1
shift
run_command ./mvnw $MAVEN_COMMON_OPTIONS ${MAVEN_NEXUS_STAGING_OPTIONS:-} $ReleaseProfileOpts ${MAVEN_NEXUS_STAGING_PLUGIN}:$goal "$@"
run_command ./mvnw $MAVEN_COMMON_OPTIONS ${MAVEN_NEXUS_STAGING_OPTIONS:-} $ReleaseProfileOpts -DstagingDescription="$ArtifactId:$Version" ${MAVEN_NEXUS_STAGING_PLUGIN}:$goal "$@"
}

## This function runs the staging plugin to fetch the repository id and state into these variables:
Expand Down
2 changes: 1 addition & 1 deletion zanata-nexus-staging
Expand Up @@ -80,4 +80,4 @@ else
ReleaseProfileOpts=
fi

run_command ./mvnw ${MAVEN_COMMON_OPTIONS:-} ${MAVEN_RELEASE_OPTIONS:-} $ReleaseProfileOpts $ProjectOpts $Goal -DstagingDescription="$ArtifactId-$Version"
run_command ./mvnw ${MAVEN_COMMON_OPTIONS:-} ${MAVEN_RELEASE_OPTIONS:-} $ReleaseProfileOpts $ProjectOpts $Goal -DstagingDescription="$ArtifactId:$Version"

0 comments on commit 522241c

Please sign in to comment.