GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.gitlab.com — Releases | GitLab Docs
/ Releases
Create a release to package your project at critical milestones. Releases combine code, binaries, documentation, and release notes into a complete snapshot of your project. When a release is created, GitLab automatically tags your code, archives a snapshot, and generates audit-ready evidence. This creates a permanent record that’s perfect for compliance requirements and can give your users confidence in your development process. Your users benefit from:
Deleting a Git tag associated with a release also deletes the release. When you create a release, or after, you can:
View releasesTo view a list of releases:
Download release assetsOpen the release and scroll to Assets. When the release has notes, this section appears below Release notes. If Assets is collapsed, expand it to see the download links. Sort releasesTo sort releases by Released date or Created date, select from the sort order dropdown list. To switch between ascending or descending order, select Sort order. Permanent link to latest releaseYou can access the latest release page through a permanent link. GitLab always redirects the permanent link URL to the address of the latest release page. The format of the URL is: You can also add a suffix to the permanent link URL. For example, if the latest release is You can access the latest release URL with the following permanent link: To learn about adding permanent links to release assets, see Permanent links to latest release assets. Sorting preferencesBy default, GitLab fetches the release using Track releases with an RSS feed
The availability of this feature is controlled by a feature flag. For more information, see the history. GitLab provides an RSS feed of a project’s releases. The feed lists the newest 100 releases. To list all releases of a project, use the Releases API. To view the feed:
Create a releaseYou can create a release: Create a release in the Releases pagePrerequisites:
To create a release in the Releases page:
Creating a release by using a CI/CD jobYou can create a release directly as part of the GitLab CI/CD pipeline by using the
The release is created only if the job processes without error. If the API returns an error during release creation, the release job fails. The following links show typical example configurations for creating a release using a CI/CD job:
Use a custom SSL CA certificate authorityYou can use the yaml The Create multiple releases in a single pipelineA pipeline can have multiple yaml Release assets as Generic packagesYou can use Generic packages to host your release assets. To create a release with packaged assets:
Upcoming releasesYou can create a release ahead of time by using the Releases API.
When you set a future Historical releasesYou can create a release in the past using either the
Releases API or the UI. When you set
a past Edit a releaseTo edit the details of a release after it’s created, you can use the Update a release API or the UI. Prerequisites:
In the UI:
Delete a releaseWhen you delete a release, its assets are also deleted. However, the associated Git tag is not deleted. Deleting a Git tag associated with a release also deletes the release. Prerequisites:
To delete a release, use either the Delete a release API or the UI. In the UI:
Associate milestones with a releaseYou can associate a release with one or more project milestones. GitLab Premium customers can specify group milestones to associate with a release. You can do this in the user interface, or by including a In the user interface, to associate milestones to a release:
On the Deploy > Releases page, the Milestone is listed in the top section, along with statistics about the issues in the milestones. Releases are also visible on the Plan > Milestones page, and when you select a milestone on this page. Here is an example of milestones with no releases, one release, and two releases. A subgroup’s project releases cannot be associated with a parent group’s milestone. To learn more, read issue #328054, Releases cannot be associated with a supergroup milestone. Get notified when a release is createdYou can be notified by email when a new release is created for your project. To subscribe to notifications for releases:
Prevent unintentional releases by setting a deploy freezePrevent unintended production releases during a period of time you specify by setting a deploy freeze period. Deploy freezes help reduce uncertainty and risk when automating deployments. A maintainer can set a deploy freeze window in the user interface or by using the Freeze Periods API to set a If the job that’s executing is in a freeze period, GitLab CI/CD creates an environment
variable named To prevent the deployment job from executing in multiple projects in a group,
define the yaml To prevent the deployment job from executing, use the yaml This configuration blocks deployment jobs conditionally and maintains pipeline continuity. When a freeze period is defined, the job fails and the pipeline can proceed without deployment. Manual deployment is possible after the freeze period. This approach offers deployment control during critical maintenance and ensures the uninterrupted flow of the CI/CD pipeline. To set a deploy freeze window in the UI, complete these steps:
If a project contains multiple freeze periods, all periods apply. If they overlap, the freeze covers the complete overlapping period. For more information, see Deployment safety. Release permissionsView a release and download assets
Publish releases without giving access to source codeYou can make releases accessible to non-project members while keeping repository-related information, such as source code and release evidence, available only to project members. These settings are ideal for projects that use releases to give access to new versions of software, but do not want the source code to be publicly available. To make releases available publicly, set the following project settings:
Create, update, and delete a release and its assets
As an example of release permission control, you can allow only
users with the Maintainer or Owner role
to create, update, and delete releases by protecting the tag with a wildcard ( Release Metrics
Group-level release metrics are available by navigating to Group > Analytics > CI/CD. These metrics include:
Working example projectThe Guided Exploration project Utterly Automated Software and Artifact Versioning with GitVersion demonstrates:
You can copy the example project to your own group or instance for testing. More details on what other GitLab CI patterns are demonstrated are available on the project page. TroubleshootingErrors when creating, updating, or deleting releases and their assetsIf the release is associated with a protected tag, the UI/API request might result in authorization failures, such as:
Make sure that the user or a service/bot account is allowed to create the protected tag too. See the release permissions for more information. Note about storageThis feature is built on top of Git tags, so virtually no extra data is needed besides what’s required to create the release itself. Additional assets and the release evidence that is automatically generated consume storage. GitLab CLI version requirementThe way of using the You must use GitLab CLI tool
There are two ways to have the GitLab CLI tool:
Was this page helpful?
|
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |