Global

Methods

checkJobrunner(packageJsonDir, callback)

Checks running jobrunner version to see if updates are available, and notify user in log if true;
Parameters:
Name Type Description
packageJsonDir Expects directory containing jobrunner's package.json usually value would be arg[1]/..
callback
Source:

evaluateHighestRepoTag(instance, callback)

Without cloning repository, get ALL tags through ls-remote, awk and grep command line executions. Tag is compared to target environment [version_seed] to ensure found tag is greater. Returns evaluated highest version.
Parameters:
Name Type Description
instance
callback
Source:

filterAllTags(tags) → {Array}

Given array, will review each value and verify value is valid semantically versioned tag.
Parameters:
Name Type Description
tags
Source:
Returns:
Type
Array

getCurrentHeadSha(instance) → {Promise}

Gets commit sha of respository without clone repository locally.
Parameters:
Name Type Description
instance
Source:
Returns:
Type
Promise

getLatestTagCommitSha(instance) → {Promise}

Get commit sha of [instance.latest_tag] found in repository, and if not possible assign [instance.latest_tag_sha] to current commit sha, which simply means no jira ids will be found for some given unknown, and don't really care reason right now....
Parameters:
Name Type Description
instance
Source:
Returns:
Type
Promise

getRepoInformation(instance) → {Promise}

Evaulates current highest version tag, and commit sha of branch provided by cli argument -b
Parameters:
Name Type Description
instance
Source:
Returns:
Type
Promise

isGitRepository() → {boolean}

Internal function that checks present working directory to see if its a git repository.
Source:
Returns:
Type
boolean

jobrunner:processBuild()

Process build starting point
Source:
Returns:
null

startJobrunner()

jobrunner code entry
Source:
Returns:
null

windowsGetNextVersion(rawTagStr) → {Array}

Windows doesn't have awk, grep, etc - So we have to perform version collections into array through other means.
Parameters:
Name Type Description
rawTagStr
Source:
Returns:
Type
Array