This repository was archived by the owner on Dec 15, 2018. It is now read-only.
feat: use last job as leader if no node jobs #42
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Every Travis images (no matter the language selected) comes with Node and nvm installed.
Currently if there is no job job explicitly defining a Node version we don't select any build leader and the script is never ran anywhere.
That prevent to do something like this:
That config will fails because no job has the
node_jsparam. Even when settingnode_jsintravis.ymlit's not in the config retrieved by the API, as we have the Go version instead.But it's still possible to run some Javascript as Node and nvm are always installed no matter the language selected.
With this PR the config above will run the script
echo scripton the the 4th job after the first 3 jobs are completed, without having to set theBUILD_LEADER_ID.Users can still specify the
BUILD_LEADER_IDto force running on a specific job.