Stages & Lifecycle

Stages are logical entities within the JFrog platform that represent the steps in your organization's Software Development Lifecycle (SDLC) through which a release candidate must pass (such as DEV, QA, STAGING, and PROD) before it is released. Each stage is configured with its own set of associated repositories and permissions.

After defining global and project stages, administrators choose the stages to include in the lifecycle used for promoting Release Bundle v2 versions (for Release Lifecycle Management) or application versions (for AppTrust) until the version is ready for release.

Artifactory contains a default stage for releases called PROD (Production). You can create additional stages for specific projects and global stages that can be used by all projects.

Stages and Lifecycle Workflow

The following workflow describes how to create stages and define your lifecycle.

Procedure

Using the Platform UI

Using REST API

1

Create global and project stages

Create Stages in the Platform UI

Create Lifecycle Stage

POST https://{{artifactory-host}}/access/api/v2/stages/

2

Assign repositories to stages

Assign Repositories to Stages in the Platform UI

Create Repository

PUT /artifactory/api/repositories/{repoKey}

Update Repository Configuration

POST /artifactory/api/repositories/{repoKey} -H "Content-Type: application/json"

Update Multiple Repositories

POST /artifactory/api/v2/repositories/batch

3

Define the project lifecycle

Edit the Lifecycle in the Platform UI

Update Lifecycle

PATCH https://{{artifactory-host}}/access/api/v2/lifecycle/