Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Tweak ci build script to support CI build targeting any source branch.#1118

Merged
rajsesh merged 2 commits into
microsoft:developfrom
rajsesh:cib
Oct 11, 2016
Merged

Tweak ci build script to support CI build targeting any source branch.#1118
rajsesh merged 2 commits into
microsoft:developfrom
rajsesh:cib

Conversation

@rajsesh

@rajsesh rajsesh commented Oct 11, 2016

Copy link
Copy Markdown
Contributor
  • Removed deprecated build definitions.
  • Added support to explicitly specify source branch.
  • Note: Source branch could probably be determined from upstream remote, but it is not very reliable. Also, explicit parameter allows kicking off arbitrary builds.

Fix #1089

* Added support to explicitly specify source branch.
* Note: Source branch could probably be determined from upstream remote,
* but it is not very reliable.  Also, explicit parameter allows kicking
* off arbitrary builds.

Fix #1089
@rajsesh

rajsesh commented Oct 11, 2016

Copy link
Copy Markdown
Contributor Author

@DHowett-MSFT is added to the review. #Closed

Comment thread tools/build/Submit-CIBuilds.ps1 Outdated
[switch]$Reconfigure,
[switch]$SkipRemoteCheck,
[string]$BuildFilter,
[string]$SourceBranch='develop',

@DHowett-MSFT DHowett-MSFT Oct 11, 2016

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[](start = 0, length = 1)

nit: Tab, should be four spaces #Pending

Comment thread tools/build/Submit-CIBuilds.ps1 Outdated
}
If ($definitionSet.ConfigMappings.SourceBranch) {
$requestBody.sourceBranch = $definitionSet.ConfigMappings.SourceBranch.Replace("`$BRANCH", $Ref)
$requestBody.sourceBranch = $definitionSet.ConfigMappings.SourceBranch.Replace("`$BRANCH", $SourceBranch)

@DHowett-MSFT DHowett-MSFT Oct 11, 2016

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$BRANCH [](start = 89, length = 7)

I'd prefer another variable here, like $BASE or $SOURCE.

In the far future, if VSO ever gets the ability to specify a repo and ref as the source, we can move away from the pull request merge-in and use Ref directly. #Pending

@DHowett-MSFT DHowett-MSFT Oct 11, 2016

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(So we keep BRANCH for "the thing the user wants built" in all of the cases :))


In reply to: 82856817 [](ancestors = 82856817)

@DHowett-MSFT

Copy link
Copy Markdown

:shipit:

@rajsesh rajsesh merged commit 5cca890 into microsoft:develop Oct 11, 2016
@rajsesh rajsesh deleted the cib branch October 11, 2016 20:31
aballway pushed a commit to aballway/WinObjC that referenced this pull request Oct 19, 2016
microsoft#1118)

* Removed deprecated build definitions.
* Added support to explicitly specify source branch.
* Note: Source branch could probably be determined from upstream remote,
* but it is not very reliable.  Also, explicit parameter allows kicking
* off arbitrary builds.

Fix microsoft#1089
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants