“制品库nexus”的版本间的差异
跳到导航
跳到搜索
(未显示同一用户的6个中间版本) | |||
第14行: | 第14行: | ||
nexus-data: {} | nexus-data: {} | ||
+ | </pre> | ||
+ | =cofnig= | ||
+ | <pre> | ||
+ | docker exec -i eab3067209b1 cat /nexus-data/admin.password | ||
+ | 7c44e3fc-c121-404b-b741-ed554b749fda | ||
</pre> | </pre> | ||
+ | https://hub.docker.com/r/sonatype/nexus3 | ||
+ | |||
+ | https://github.com/sonatype/docker-nexus/blob/main/docker-compose.yml | ||
+ | |||
+ | https://help.sonatype.com/en/installation-and-upgrades.html | ||
+ | =rest api= | ||
+ | <pre> | ||
+ | curl -X 'POST' \ | ||
+ | 'http://192.168.10.105:8081/service/rest/v1/components?repository=maven-devops6-release' \ | ||
+ | -H 'accept: application/json' \ | ||
+ | -H 'Content-Type: multipart/form-data' \ | ||
+ | -H 'NX-ANTI-CSRF-TOKEN: 0.14480951255686547' \ | ||
+ | -H 'X-Nexus-UI: true' \ | ||
+ | -F 'maven2.groupId=com.devops6' \ | ||
+ | -F 'maven2.artifactId=demo-app' \ | ||
+ | -F 'maven2.version=1.20.1' \ | ||
+ | -F 'maven2.packaging=jar' \ | ||
+ | -F '[email protected];type=application/x-java-archive' \ | ||
+ | -F 'maven2.asset1.classifier=maven2.asset1.classifier' \ | ||
+ | -F 'maven2.asset1.extension=jar' | ||
+ | </pre> | ||
+ | =references= | ||
+ | |||
+ | [https://blog.csdn.net/qq_34556414/article/details/117995189 Nexus 05 第二种方式 使用Jenkins Nexus插件上传制品] | ||
+ | |||
+ | [https://blog.csdn.net/qq_34556414/category_11139404.html Devops CI 制品库 Nexus] | ||
[[category:devops]] | [[category:devops]] |
2024年10月2日 (三) 13:54的最新版本
ins
version: "3" services: nexus: image: sonatype/nexus3 volumes: - "nexus-data:/sonatype-work" ports: - "8081:8081" volumes: nexus-data: {}
cofnig
docker exec -i eab3067209b1 cat /nexus-data/admin.password 7c44e3fc-c121-404b-b741-ed554b749fda
https://hub.docker.com/r/sonatype/nexus3
https://github.com/sonatype/docker-nexus/blob/main/docker-compose.yml
https://help.sonatype.com/en/installation-and-upgrades.html
rest api
curl -X 'POST' \ 'http://192.168.10.105:8081/service/rest/v1/components?repository=maven-devops6-release' \ -H 'accept: application/json' \ -H 'Content-Type: multipart/form-data' \ -H 'NX-ANTI-CSRF-TOKEN: 0.14480951255686547' \ -H 'X-Nexus-UI: true' \ -F 'maven2.groupId=com.devops6' \ -F 'maven2.artifactId=demo-app' \ -F 'maven2.version=1.20.1' \ -F 'maven2.packaging=jar' \ -F '[email protected];type=application/x-java-archive' \ -F 'maven2.asset1.classifier=maven2.asset1.classifier' \ -F 'maven2.asset1.extension=jar'