You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@infra.apache.org by "Ulrich Stärk (JIRA)" <ji...@apache.org> on 2011/08/07 11:36:27 UTC

[jira] [Issue Comment Edited] (INFRA-3816) Allow Gradle builds to upload snapshot artifacts

    [ https://issues.apache.org/jira/browse/INFRA-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080440#comment-13080440 ] 

Ulrich Stärk edited comment on INFRA-3816 at 8/7/11 9:36 AM:
-------------------------------------------------------------

The build script seems to find the username and password but isn't able to deploy due to authorization failure:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':plastic:uploadPublished'.
Cause: Could not publish configurations [configuration ':plastic:published', configuration ':plastic:archives', configuration ':plastic:meta'].
Cause: Error deploying artifact 'org.apache.tapestry:plastic:jar': Error retrieving previous build number for artifact 'org.apache.tapestry:plastic:jar': repository metadata for: 'snapshot org.apache.tapestry:plastic:5.3-SNAPSHOT' could not be retrieved from repository: remote due to an error: Authorization failed: Access denied to: https://repository.apache.org/service/local/snapshots/deploy/maven2/org/apache/tapestry/plastic/5.3-SNAPSHOT/maven-metadata.xml
Cause: Error retrieving previous build number for artifact 'org.apache.tapestry:plastic:jar': repository metadata for: 'snapshot org.apache.tapestry:plastic:5.3-SNAPSHOT' could not be retrieved from repository: remote due to an error: Authorization failed: Access denied to: https://repository.apache.org/service/local/snapshots/deploy/maven2/org/apache/tapestry/plastic/5.3-SNAPSHOT/maven-metadata.xml
Cause: repository metadata for: 'snapshot org.apache.tapestry:plastic:5.3-SNAPSHOT' could not be retrieved from repository: remote due to an error: Authorization failed: Access denied to: https://repository.apache.org/service/local/snapshots/deploy/maven2/org/apache/tapestry/plastic/5.3-SNAPSHOT/maven-metadata.xml
Cause: Authorization failed: Access denied to: https://repository.apache.org/service/local/snapshots/deploy/maven2/org/apache/tapestry/plastic/5.3-SNAPSHOT/maven-metadata.xml
Cause: Access denied to: https://repository.apache.org/service/local/snapshots/deploy/maven2/org/apache/tapestry/plastic/5.3-SNAPSHOT/maven-metadata.xml


      was (Author: ulrich.staerk):
    The build script seems to find the username and password but isn't able to deploy:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':plastic:uploadPublished'.
Cause: Could not publish configurations [configuration ':plastic:published', configuration ':plastic:archives', configuration ':plastic:meta'].
Cause: Error deploying artifact 'org.apache.tapestry:plastic:jar': Error retrieving previous build number for artifact 'org.apache.tapestry:plastic:jar': repository metadata for: 'snapshot org.apache.tapestry:plastic:5.3-SNAPSHOT' could not be retrieved from repository: remote due to an error: Authorization failed: Access denied to: https://repository.apache.org/service/local/snapshots/deploy/maven2/org/apache/tapestry/plastic/5.3-SNAPSHOT/maven-metadata.xml
Cause: Error retrieving previous build number for artifact 'org.apache.tapestry:plastic:jar': repository metadata for: 'snapshot org.apache.tapestry:plastic:5.3-SNAPSHOT' could not be retrieved from repository: remote due to an error: Authorization failed: Access denied to: https://repository.apache.org/service/local/snapshots/deploy/maven2/org/apache/tapestry/plastic/5.3-SNAPSHOT/maven-metadata.xml
Cause: repository metadata for: 'snapshot org.apache.tapestry:plastic:5.3-SNAPSHOT' could not be retrieved from repository: remote due to an error: Authorization failed: Access denied to: https://repository.apache.org/service/local/snapshots/deploy/maven2/org/apache/tapestry/plastic/5.3-SNAPSHOT/maven-metadata.xml
Cause: Authorization failed: Access denied to: https://repository.apache.org/service/local/snapshots/deploy/maven2/org/apache/tapestry/plastic/5.3-SNAPSHOT/maven-metadata.xml
Cause: Access denied to: https://repository.apache.org/service/local/snapshots/deploy/maven2/org/apache/tapestry/plastic/5.3-SNAPSHOT/maven-metadata.xml

  
> Allow Gradle builds to upload snapshot artifacts
> ------------------------------------------------
>
>                 Key: INFRA-3816
>                 URL: https://issues.apache.org/jira/browse/INFRA-3816
>             Project: Infrastructure
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: Jenkins
>            Reporter: Ulrich Stärk
>            Assignee: Niklas Gustavsson
>
> Similar to the standard credentials used by Maven builds to upload artifacts to the Nexus snapshot repository, Gradle needs to know about the credentials used to upload artifacts. The details need to be present in the file ~/.gradle/gradle.properties in the home directory of the user the build is running as (probably on all build hosts, but at least on ubuntu2 where Tapestry builds are running). The format is standard Java properties file format. I propose the properties to be named snapshotDeployUserName and snapshotDeployPassword.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira