Guest User

Untitled

a guest
Jan 9th, 2018
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. withCredentials([usernamePassword(credentialsId: 'asdf23432-fe69-1234-2222-ffa65yteec2c', passwordVariable: 'NEXUS_PASSWORD', usernameVariable: 'NEXUS_USER')]) {
  2. sh "./gradlew upload --debug"
  3. }
  4.  
  5. ext{
  6. nexusUser = System.properties['NEXUS_USER']
  7. nexusPassword = System.properties['NEXUS_PASSWORD']
  8. }
  9.  
  10. uploadArchives {
  11. repositories {
  12. mavenDeployer {
  13. snapshotRepository(url: 'http://somerepo'){
  14. authentication(userName: nexusUser, password: nexusPassword)
  15. }
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment