1.0.0 • Published 4 years ago

@ryan.ratcliff/tool-registry-jenkins-publisher v1.0.0

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
4 years ago

tool-registry-jenkins-publisher

This library is intended to be used in the deploy/hooks.js actions to push tools to the Tool Registry Service as part of the deploy process.

Example usage on hot to push two items in a repo, one image, one workflow to TRS

const {
  ToolUploader,
  ToolClass,
} = require('@lifeomic/tool-registry-jenkins-publisher');

exports.afterDeployTerraform = async (env) => {
  console.log(ToolUploader);

  const version = require('./package.json').version;
  
  // upload the tools to TRS
  
  await ToolUploader.uploadTool(
    './artifacts/caris-ingest.cwl',  // path to the tool within the build environment
    'caris-ingest-workflow', // name you want the tool to have
    version, // version of the tool
    ToolClass.CWL // tool type
  );

  await ToolUploader.uploadTool(
    './artifacts/caris-ingest.tar.gz',
    'caris-ingest-image',
    version,
    ToolClass.IMAGE
  );
};
1.0.0

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago