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:
| Subtype | Technology |
|---|---|
maven | Java (Maven) |
npm | JavaScript / TypeScript (npm) |
nuget | .NET (NuGet) |
Payload Fields
| Field | Required | Description |
|---|---|---|
type | Yes | One of: maven, npm, nuget |
version | Yes | v1 |
repositoryUrl | Yes | URL of the artifact registry |
artifactPath | Yes | Path to the package in the registry |
artifactVersion | Yes | Version 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"
}]
}'