0.3.6 • Published 8 years ago

henge-ruff-jenkins v0.3.6

Weekly downloads
48
License
-
Repository
-
Last release
8 years ago

Ruff Jenkins Plugin for Henge

This plugin provides common variables and extensions for Henge on Ruff Jenkins.

Variables

NameDescription
branchCurrent Git branch, defaults to environment variable GIT_BRANCH. For complete resolving logic, please check out the source code.
jenkinsUrlDefaults to environment variable JENKINS_URL, fallbacks to 'http://jenkins.nanchao.org:8080/'.
configUrlBase url or path under which the configuration files are stored. For example "{configUrl}/embedded-platforms.json".

Local Configuration URL

If you want to use local configuration files, you may add, for example, a embedded-platforms.json file under your project directory, and distribute with --local:

henge dist --local

Then the configUrl variable will have the value ".".

If you want to provide reusable configurations, you can add them into a directory and set environment variable HENGE_RUFF_CONFIG_DIR (which will update the configUrl variable).

Dependency Resolving

Jenkins Artifact Resolving

This plugin adds the ability to resolve Jenkins dependencies to proper artifact URLs.

Some extra options are provided:

  • job: Jenkins job name.
  • singleNode?: - Indicates whether the target multiplatform artifact is built on a single node (usually for embedded cross-compilation configuration) instead of several ones (usually for PCs).
  • branch?: - Resolve this dependency to specific branch (one of "master", "release" and "develop").

GitHub Resolving

GitHub resolving is also provided with following options:

  • github: GitHub project path, in the form of <username>/<project>.
  • branch?: - Branch to resolve, default to "master".

Default Artifact ID

This plugin also provides default artifact ID for artifacts, the ID could look like:

  • "{name}-{version}" (master or local)
  • "{name}-{version}-{platform}" (master or local, multiplatform)
  • "{name}-{version}-SNAPSHOPT-{build}" (other braches on Jenkins)
  • "{name}-{version}-{platform}-SNAPSHOPT-{build}" (other braches on Jenkins, multiplatform)

Build

To build this plugin:

npm install # Install dependencies
npm install henge # Do not need to save
npm run build # Compile TypeScript

Or you can use watch mode for compilation during development:

npm run build -- -w
0.3.6

8 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.7

9 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago