Skip to main content

Package Registry

The package registry result subtypes report a link to an artifact registry where the built package is stored. The subtype depends on the technology stack used:

SubtypeTechnology
mavenJava (Maven)
npmJavaScript / TypeScript (npm)
nuget.NET (NuGet)

Payload Fields

FieldRequiredDescription
typeYesOne of: maven, npm, nuget
versionYesv1
repositoryUrlYesURL of the artifact registry
artifactPathYesPath to the package in the registry
artifactVersionYesVersion of the package (e.g., 0.0.1)

Example

curl -L -X POST 'https://api.cloud.codenow.com/ci/webhook' \
--header 'Accept: application/vnd.codenow.v1+json' \
--header 'Content-Type: application/vnd.codenow.v1+json' \
--header 'X-Codenow-Api-Key: {YOUR_CI_KEY}' \
--data-raw '{
"type": "codenow.ci.result.event",
"version": "application/vnd.codenow.v1+json",
"pipelineId": "my-pipeline-id",
"createdAt": "2024-01-01T00:00:00.000Z",
"payload": [{
"type": "maven",
"version": "v1",
"repositoryUrl": "url-to-the-artifact-repository",
"artifactPath": "path-to-the-artifact",
"artifactVersion": "0.0.1"
}]
}'