Package: Release Repository Manager
The module manages a release repository for b4A packages. It provides operations for initialization, upload and download of releases and listing packages and versions of a package.
Designation
- Name
- pm.Repository
Datastreams
-
Versions versions: Version
-
Packages packages: Package
Configuration
- Optionen
- Operation (
operation
) - Defines the operation to perform on the release repository. Depending on the operation different other options must be given.Mögliche Werte: Initialize (
init
), Upload (upload
), Download (download
), List Packages (list-packages
), List Versions (list-versions
)
- Package (
package
) - Name of the package
- VersionMail.DecrMailHeader=the file contains the mail header that will be prepended to each mail (
version
) - Version number of the release
- Upload Release File (
upload-file
) - release file that should be uploaded to the release repository
- Downloaded Release File (
download-file
) - Storage location for the downloaded release file
- Release Repository Configuration File (
repository-config-file
) - Path to the configuration file for the release repository
Description
The module uses the available backend implementations to manage a release repository. The settings for the selected backend are saved in the configuration file repository.json.
Backends
filesystem
The backend uses a directory to store and manage all release files. For this purpose, an index file is used to store which
- directory: Base directory for the release repository
- indexFile: Name of the index file
:
{
"directory": "/data/best4Automic/repository",
"indexFile": ".package.idx"
}
Examples
Uploading a new release file
./b4A pm.Repository --package B4A.PM --operation upload --version 1.4.0 --download-file /tmp/B4A.PM-20240109.zip --log-variants REPORT
List all releases of the b4A Package B4A.BASE
.
./b4A pm.Repository --operation list-versions --package B4A.BASE --log-variants REPORT --log-levels DATASTREAM