forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass version number to build-chocolatey and update-homebrew
Instead of always grabbing the Yarn version number from yarnpkg.com, allow it to be passed in as command line argument. Updates Jenkins bump-version job to pass it in. References yarnpkg/website#471
- Loading branch information
Showing
3 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,17 @@ job('yarn-version') { | |
branch 'origin', 'master' | ||
pushOnlyIfSuccess | ||
} | ||
downstreamParameterized { | ||
// Other jobs to run when version number is bumped | ||
trigger([ | ||
'yarn-chocolatey', | ||
'yarn-homebrew', | ||
]) { | ||
parameters { | ||
currentBuild() | ||
} | ||
} | ||
} | ||
gitHubIssueNotifier { | ||
} | ||
} | ||
|
@@ -71,16 +82,15 @@ job('yarn-chocolatey') { | |
scm { | ||
github 'yarnpkg/yarn', 'master' | ||
} | ||
triggers { | ||
upstream 'yarn-version' | ||
parameters { | ||
stringParam 'YARN_VERSION' | ||
} | ||
steps { | ||
powerShell '.\\scripts\\build-chocolatey.ps1 -Publish' | ||
} | ||
publishers { | ||
gitHubIssueNotifier { | ||
} | ||
mailer '[email protected]' | ||
} | ||
} | ||
|
||
|
@@ -90,15 +100,14 @@ job('yarn-homebrew') { | |
scm { | ||
github 'yarnpkg/yarn', 'master' | ||
} | ||
triggers { | ||
upstream 'yarn-version' | ||
parameters { | ||
stringParam 'YARN_VERSION' | ||
} | ||
steps { | ||
shell './scripts/update-homebrew.sh' | ||
} | ||
publishers { | ||
gitHubIssueNotifier { | ||
} | ||
mailer '[email protected]' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters