1.0.0 • Published 4 years ago
@ryan.ratcliff/tool-registry-jenkins-publisher v1.0.0
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
);
};