Coder Social home page Coder Social logo

CI about n3dr HOT 2 CLOSED

030 avatar 030 commented on May 28, 2024
CI

from n3dr.

Comments (2)

030 avatar 030 commented on May 28, 2024

In order to get all artifacts:

curl -u user:pass -X GET "https://nexus-host/service/rest/v1/assets?repository=releases&continuationToken=some-token" -H  "accept: application/json"

All downloadUrls

./nexus-download.sh | jq .items[].downloadUrl

DownloadUrls for individual artifact

/service/rest/v1/search/assets?repository=releases&name=name&version=version" -H  "accept: application/json" | jq .items[].downloadUrl

The following returns more than 10.

v1/search/assets

Upload artifacts

curl -u admin:admin123 -X POST "http://localhost:8081/service/rest/v1/components?repository=maven-releases" -H  "accept: application/json" -H  "Content-Type: multipart/form-data" -F "maven2.asset1=@/home/user/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/5.1.6.RELEASE/a7c61020fb4f4e937ed5cfef0d0d08c55d24cbb6/spring-beans-5.1.6.RELEASE.pom" -F "maven2.asset1.extension=pom" -F "maven2.asset2=@/home/user/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/5.1.6.RELEASE/90d2f4bf7eced108de0b5bf617abb2b13a6206a3/spring-beans-5.1.6.RELEASE.jar" -F "maven2.asset2.extension=jar"

Find all artifacts downloadUrls

curl -X GET "http://localhost:8081/service/rest/v1/search/assets?repository=maven-releases" -H  "accept: application/json"

Download all artifacts

curl -u admin:admin123 -L -X GET "http://localhost:8081/service/rest/v1/search/assets/download?repository=maven-releases&name=spring-beans&version=5.1.6.RELEASE&maven.extension=jar" -H  "accept: application/json" -o spring-beans-5.1.6.jar

from n3dr.

030 avatar 030 commented on May 28, 2024

The job exceeded the maximum log length, and has been terminated.

from n3dr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.