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/02 14:31:27 UTC
[jira] [Created] (INFRA-3816) Allow Gradle builds to upload
snapshot artifacts
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
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
[jira] [Issue Comment Edited] (INFRA-3816) Allow Gradle builds to
upload snapshot artifacts
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (INFRA-3816) Allow Gradle builds to upload
snapshot artifacts
Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080375#comment-13080375 ]
Niklas Gustavsson commented on INFRA-3816:
------------------------------------------
File set up on ubuntu1, please verify that things works before I set it up on the other ubuntu slaves.
> 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
>
> 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
[jira] [Commented] (INFRA-3816) Allow Gradle builds to upload
snapshot artifacts
Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080434#comment-13080434 ]
Niklas Gustavsson commented on INFRA-3816:
------------------------------------------
Alright, now set up on ubuntu2
> 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
[jira] [Assigned] (INFRA-3816) Allow Gradle builds to upload
snapshot artifacts
Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niklas Gustavsson reassigned INFRA-3816:
----------------------------------------
Assignee: Niklas Gustavsson
> 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
[jira] [Commented] (INFRA-3816) Allow Gradle builds to upload
snapshot artifacts
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080633#comment-13080633 ]
Ulrich Stärk commented on INFRA-3816:
-------------------------------------
Will try that. I took the URL from the apache.pom staging repo and modified that and missed the one for the snapshots repository.
> 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
[jira] [Commented] (INFRA-3816) Allow Gradle builds to upload
snapshot artifacts
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080440#comment-13080440 ]
Ulrich Stärk commented on INFRA-3816:
-------------------------------------
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
[jira] [Commented] (INFRA-3816) Allow Gradle builds to upload
snapshot artifacts
Posted by "Olivier Lamy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080610#comment-13080610 ]
Olivier Lamy commented on INFRA-3816:
-------------------------------------
IMHO you must deploy to https://repository.apache.org/content/repositories/snapshots
Your logs looks to say you are deploying to https://repository.apache.org/service/local/snapshots/deploy/maven2
> 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
[jira] [Commented] (INFRA-3816) Allow Gradle builds to upload
snapshot artifacts
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080429#comment-13080429 ]
Ulrich Stärk commented on INFRA-3816:
-------------------------------------
I can't. Our build is bound to ubuntu2 because of some dependencies for running the tests.
> 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
[jira] [Closed] (INFRA-3816) Allow Gradle builds to upload snapshot
artifacts
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/INFRA-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk closed INFRA-3816.
-------------------------------
Resolution: Fixed
It's working now. Thanks!
> 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