The YAML schema for NpmBuild native step is as follows:
NpmBuild
pipelines:
- name: <string>
steps:
- name: <string>
type: NpmBuild
configuration:
#inherits all the tags from bash
# for payloadType npm:
npmArgs: <string> # optional
repositoryName: <string> # optional, npm repository name on artifactory
resolverRepo: <string> # optional, npm repository name on artifactory
sourceLocation: <string> # optional, directory containing package.json file
integrations:
- name: <artifactory integration or JFrog platform access token integration> # required, unless there is a FileSpec input
inputResources:
- name: <gitrepo resource> # required
- name: <filespec resource> # optional
execution:
onStart:
- echo "Preparing for work..."
onSuccess:
- echo "Job well done!"
onFailure:
- echo "uh oh, something went wrong"
onComplete: #always
- echo "Cleaning up some stuff"