-
Notifications
You must be signed in to change notification settings - Fork 3
Bash: 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 apom.xml
.
All of the scripts support the --help
command line argument which will emit the aforementioned names and descriptions to the console.
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
.
The package scripts allow you to create, delete and list your [Bintray] (https://bintray.com) packages. The required package parameters are: --bintrayRepo
and --bintrayPackage
.
- [package-create.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/package-create.sh) will create packages. Required parameter:
--bintrayLicenses
. - [package-delete.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/package-delete.sh) will delete packages.
- [package-list.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/package-delete.sh) will list packages.
The version scripts allow you to create and delete your [Bintray] (https://bintray.com) versions. The required version parameters are: --bintrayRepo
, --bintrayPackage
and --bintrayVersion
.
- [version-create.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/version-create.sh) will create versions.
- [version-delete.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/version-delete.sh) will delete versions.
The content scripts allow you to create and publish your [Bintray] (https://bintray.com) content. The required content parameters are: --bintrayRepo
, --bintrayPackage
and --bintrayVersion
.
- [conent-create.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/content-create.sh) will create content.
- [content-publish.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/content-publish.sh) will publish content.
The publishing scripts allow you to publish your [Maven] (http://maven.apache.org) and RPM [Bintray] (https://bintray.com) content.
- [maven-publish.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/maven-publish.sh) will publish Java artifacts based upon the version contained within the
pom.xml
. - [rpm-publish.sh] (https://github.com/FlossWare/scripts/blob/master/bash/bintray/rpm-publish.sh) will create and publish RPM content. Required parameter:
--bintrayContext
.