Details
Description
I'm trying to automatically push SNAPSHOTs using a Travis-CI machine, like so:
after_success:
- if [[ $MAVEN == 'true' && $TRAVIS_BRANCH == 'dev' && $TRAVIS_PULL_REQUEST == 'false'
]]; then gradle clean uploadArchives -PnexusUsername=$nexusUsername -PnexusPassword=$nexusPassword --info
; fi
nexusUsername and nexusPassword have been encrypted using travis encrypt.
However, I keep getting a 401 response. When running the exact same command from my local machine, the task succeeds.
My username: nhaarman
Link to travis build: https://travis-ci.org/nhaarman/FastFail/builds/32763676#L833