This is a concourse resource to work with bintray repositories and packages.
You can download or publish packages using this resource.
The resource requires rust to be installed. You can find more info here
Run cargo build to compile the resource.
The command will put the compiled files into target/debug directory with executables for
each resource.
You can run the executables with --script argument to perform check, in and out operations.
You can get more information, by running the executable with --help argument.
There are two resources in this repository.
This resource is used for creating and updating bintray repositories.
usernamea username to access the bintray APIapi_keyan authorization token available from the bintray user profilesubjecta bintray organisation name (also calledownersometimes)repositorya name of a repository to create or update within thesubjectrepository_typea bintray repository type. Possible types are listed in the API docs
privatebusiness_unitdesclabelsgpg_sign_metadatagpg_sign_filesgpg_use_owner_keyyum_metadata_depth
All parameters are optional and described in the API docs
This resource is used to download and publish packages.
username: Required a username to access the bintray APIapi_key: Required an authorization token available from the bintray user profilesubject: Required a bintray organisation name (also calledownersometimes)repository: Required a name of a repository to create or update within thesubjectpackage: Required the name of the package to download/creategpg_passphrase: Optional a passphrase for keys configured in the repositoryversion_filter: Optional a globe pattern string, or an array of globe pattern strings to filter package versions. Only useful in thecheckbehaviour. Versions returned by thecheckscript will match the pattern.
The check command will return a list of package versions published on bintray. Bintray orders versions chronologically, so the most recent version will be considered "latest".
If version_filter is specified, only versions matching the filter glob pattern will be returned.
local_path: Optional the directory where downloaded files are store inside the resource directory.remote_path: Optional the directory from which files are downloadedfilter: Optional a glob battern or a list of glob patterns to limit the set of downloaded files If no parameters set, the command will download all the package contents and put them into the resource root directory.
Publishes a new version or overrides an existing version of a bintray package. This script will create a version and upload the package files for this version.
local_path: Optional the directory to get the package files fromremote_path: Optional the directory where to upload filesfilter: Optional a glob pattern or a list of glob patterns to limit the set of files to uploadversion: Required the regular expression to compute the actual published version from the files. From the first file which matches the regular expression, the first matched group is considered the version to publish.publish: Optional boolean. If the file should be marked as "published" on bintrayoverride: Optional boolean. If the existing files should be overriden by the uploaded.debian_architecture: Optional only for debian repositories. Supported debian architecture or a list of architectures.debian_distribution: Optional only for debian repositories. Supported debia distribution or a list of distributions.debian_component: Optional only for debian repositories A component or a list of componentsshow_in_download_list: Optional boolean. If the file should be listed in the web UI in the downloads section.keep_existing_files: Optional boolean. What to do with files not overriden by the upload.package_props: Optional properties for create_packagedesc: Optionallabels: Optionalpublic_download_numbers: Optionalpublic_stats: Optionalmaturity: Optionallicenses: Optionalcustom_licenses: Optionalwebsite_url: Optionalissue_tracker_url: Optionalvcs_url: Optionalgithub_repo: Optionalgithub_release_notes_file: Optional
version_props: Optional properties for create_versiondesc: Optionalreleased: Optionalvcs_tag: Optionalgithub_release_notes_file: Optionalgithub_use_tag_release_notes: Optional
(c) 2017-2022 VMware, Inc. or its affiliates.
This package, the Concourse Bintray Resource, is licensed under the Mozilla Public License 2.0 ("MPL").
See LICENSE.