Skip to content

Commit

Permalink
Use deploy:deploy instead of nexus-staging-maven-plugin:deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
definite committed Feb 7, 2018
1 parent fc91667 commit 11a8734
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
19 changes: 11 additions & 8 deletions jenkins/maven-Jenkinsfile
Expand Up @@ -201,15 +201,18 @@ timestamps {
script: "bash $WORKSPACE/zanata-pom-set-version ${artifactId}- $releaseVersion $PLATFORM_MAVEN_VERSION_PROJECT",
)
}
stage('Nexus') {
sh "bash $WORKSPACE/zanata-nexus $PLATFORM_MAVEN_NEXUS_RELEASE_PROJECTS"
}
//stage('NexusStaging') {
// sh "bash $WORKSPACE/zanata-nexus-staging $PLATFORM_MAVEN_NEXUS_RELEASE_PROJECTS"
//}
//stage('NexusRelease') {
// sh "bash $WORKSPACE/zanata-nexus-release"
// We cannot use org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy here
// It generate following error
// [ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy (default-cli) on project build-tools: The packaging for this project did not assign a file to the build artifact
//stage('Nexus') {
// sh "bash $WORKSPACE/zanata-nexus $PLATFORM_MAVEN_NEXUS_RELEASE_PROJECTS"
//}
stage('NexusStaging') {
sh "bash $WORKSPACE/zanata-nexus-staging $PLATFORM_MAVEN_NEXUS_RELEASE_PROJECTS"
}
stage('NexusRelease') {
sh "bash $WORKSPACE/zanata-nexus-release"
}
stage('SetSnapshotVersion') {
sh(returnStatus: true,
script: "bash $WORKSPACE/zanata-pom-set-version ${artifactId}- $developmentVersion $PLATFORM_MAVEN_VERSION_PROJECT",
Expand Down
8 changes: 4 additions & 4 deletions zanata-maven-release
Expand Up @@ -281,12 +281,12 @@ $ScriptDir/zanata-pom-set-version "$TagPrefix" "$ReleaseVersion" "$MavenVersionP

## Deploy to Nexus Staging
print_status " deploy to nexus staging"
$ScriptDir/zanata-nexus "$NexusReleaseProjects"
#$ScriptDir/zanata-nexus-staging "$NexusReleaseProjects"
#$ScriptDir/zanata-nexus "$NexusReleaseProjects"
$ScriptDir/zanata-nexus-staging "$NexusReleaseProjects"

## Release artifact in nexus staging
#print_status " Release artifact in nexus staging"
#$ScriptDir/zanata-nexus-release "$NexusReleaseProjects"
print_status " Release artifact in nexus staging"
$ScriptDir/zanata-nexus-release "$NexusReleaseProjects"

## Set to development version
print_status " Set to development version to $DevelopmentVersion"
Expand Down

0 comments on commit 11a8734

Please sign in to comment.