-
-
Save Nklya/96a3a907333333b23a488a7a677cfa11 to your computer and use it in GitHub Desktop.
deploy-rpm-nexus.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Method 1 | |
### | |
mvn deploy:deploy-file \ | |
-DgroupId=com.github.diegopacheco.sandbox.devops \ | |
-DartifactId=fpmtest \ | |
-Dversion=1.0.0 \ | |
-DgeneratePom=true \ | |
-Dpackaging=rpm \ | |
-DrepositoryId=nexus \ | |
-Durl=http://127.0.0.1:8081/nexus/content/repositories/releases \ | |
-Dfile=slashbin-1.0-1.x86_64.rpm | |
### Method 2 | |
### | |
curl -v -u admin:admin123 --upload-file slashbin-1.0-1.x86_64.rpm http://127.0.0.1:8081/nexus/content/repositories/releases/com/github/diegopacheco/sandbox/devops/fpmtest/1.0.1/fpmtest-1.0.1.rpm | |
### Method 3 | |
### | |
curl -v -F r=releases -F hasPom=false -F e=rpm -F g=com.github.diegopacheco.sandbox.devops -F a=fpmtest -F v=2.0 -F p=rpm -F file=@slashbin-1.0-1.x86_64.rpm -u admin:admin123 http://127.0.0.1:8081/nexus/service/local/artifact/maven/content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment