Skip to content

#198: deploy SNAPSHOTs to OSSRH - #226

Merged
hohwille merged 6 commits into
devonfw:developfrom
hohwille:feature/198-deploy-snapshots
Mar 5, 2020
Merged

hohwille merged 6 commits into
devonfw:developfrom
hohwille:feature/198-deploy-snapshots

Conversation

@hohwille

@hohwille hohwille commented Mar 3, 2020

Copy link
Copy Markdown
Member

implements #198

@hohwille hohwille added enhancement New feature or request SCM Software-configuration-management (maven, travis, etc.) labels Mar 3, 2020
@hohwille hohwille added this to the release:2020.04.00 milestone Mar 3, 2020
@hohwille

hohwille commented Mar 3, 2020 •

Copy link
Copy Markdown
Member Author
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project devon4j: 
Failed to deploy artifacts: Could not transfer artifact 
com.devonfw.java.dev:devon4j:pom:dev-20200303.165514-19 from/to repository 
(https://oss.sonatype.org/content/repositories/snapshots/): Failed to transfer file: 
https://oss.sonatype.org/content/repositories/snapshots/com/devonfw/java/dev/devon4j/dev-SNAPSHOT/devon4j-dev-20200303.165514-19.pom. 
Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]

For the record - see https://issues.apache.org/jira/browse/MDEPLOY-266 and vote for it.

@hohwille

hohwille commented Mar 5, 2020

Copy link
Copy Markdown
Member Author

BTW: Was actually a good test. However, in case I fixed the credentials and it works, before merging we need to add a condition that deployment does not happen for PR but only after merge.

@hohwille

hohwille commented Mar 5, 2020

Copy link
Copy Markdown
Member Author

Please note that encrypted environment variables are not available for pull requests from forks.

https://docs.travis-ci.com/user/encryption-keys/

@hohwille

hohwille commented Mar 5, 2020

Copy link
Copy Markdown
Member Author

TRAVIS_PULL_REQUEST is set to the pull request number if the current job is a pull request build, or false if it’s not.

https://docs.travis-ci.com/user/environment-variables/

@hohwille
hohwille merged commit 7986463 into devonfw:develop Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request SCM Software-configuration-management (maven, travis, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant