Skip to content
This repository was archived by the owner on Jun 21, 2020. It is now read-only.

Bash: Bintray

Scot P. Floess edited this page Nov 8, 2015 · 2 revisions

Bintray

We've included a number of scripts to create, list and delete artifacts using the [Bintray API] (https://bintray.com/docs/api). While not all command line parameters are used by each script, the following bulleted list denotes the recognized options (some familiarity with [Bintray] (https://bintray.com) may provide better clarity):

  • --bintrayUser - your user name.
  • --bintrayKey - your API key.
  • --bintrayAccount - your account name (really your organization name).
  • --bintrayRepo - the repo type like maven, rpm, etc.
  • --bintrayLicenses - for now, a single entry license name you use when creating a package. For example GPL-3.0.
  • --bintrayPackage - the package name.
  • --bintrayDescription - a description like a package description.
  • --bintrayVersion - a version of an artifact.
  • --bintrayFile - the actual local artifact you will publish.
  • --bintrayContext - this is a [FlossWare Scripts] (https://github.com/FlossWare/scripts) specific item and it denotes the context in which you are working. For example, if you are publishing RPMs, its the spec file used to build the RPM or a pom.xml.

All of the scripts support the --help command line argument which will emit the aforementioned names and descriptions to the console.

Scripts

Our scripts are divided into utilities and commands. The commands perform an action but those actions may require related functionality which is encapsulated in utilties. For example, the version commands [version-create.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/version-create.sh) and [version-delete.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/version-delete.sh) both require a repo, package and version to work correctly. This functionality is encapsulated in the [version-utils.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/bintray-version-util.sh) script.

All commands require the following parameters: --bintrayUser, --bintrayKey and --bintrayAccount.

Package

The package scripts allow you to create, delete and list your [Bintray] (https://bintray.com) packages. The required package parameters are: --bintrayRepo and --bintrayPackage.

Version

The version scripts allow you to create and delete your [Bintray] (https://bintray.com) versions. The required version parameters are: --bintrayRepo, --bintrayPackage and --bintrayVersion.

Content

The content scripts allow you to create and publish your [Bintray] (https://bintray.com) content. The required content parameters are: --bintrayRepo, --bintrayPackage and --bintrayVersion.

Publishing

The publishing scripts allow you to publish your [Maven] (http://maven.apache.org) and RPM [Bintray] (https://bintray.com) content.

Clone this wiki locally