Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- withCredentials([usernamePassword(credentialsId: 'asdf23432-fe69-1234-2222-ffa65yteec2c', passwordVariable: 'NEXUS_PASSWORD', usernameVariable: 'NEXUS_USER')]) {
- sh "./gradlew upload --debug"
- }
- ext{
- nexusUser = System.properties['NEXUS_USER']
- nexusPassword = System.properties['NEXUS_PASSWORD']
- }
- uploadArchives {
- repositories {
- mavenDeployer {
- snapshotRepository(url: 'http://somerepo'){
- authentication(userName: nexusUser, password: nexusPassword)
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment