Skip to content

Conversation

@Dobriy33
Copy link
Contributor

@Dobriy33 Dobriy33 commented Feb 15, 2018

Issue #1355 .
Develop branch is always set in the ContinuousDeployment mode in config and even when we use the Mainline mode. Consequently, we can not get the expected version in the develop branch.
If we try to override branch mode in config, we get an error: "Mainline mode only works at the repository level, a single branch cannot be put into mainline mode..."
By default, all other branches inherit the global mode.

@Dobriy33
Copy link
Contributor Author

@asbjornu can you review this?

Copy link
Member

@asbjornu asbjornu left a comment

Choose a reason for hiding this comment

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

What is the issue this PR solves? Can you please provide a description in the first comment of the pull reuqest (edit it)?

defaultTag: "alpha",
defaultIncrementStrategy: IncrementStrategy.Minor,
defaultVersioningMode: VersioningMode.ContinuousDeployment,
defaultVersioningMode: config.VersioningMode == VersioningMode.Mainline? VersioningMode.Mainline : VersioningMode.ContinuousDeployment,
Copy link
Member

Choose a reason for hiding this comment

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

Why can't defaultVersioningMode always be set to config.VersioningMode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because documentation says that the develop branch is set to ContinuousDeployment mode by default. And all tests require develop branch in ContiniousDeployment mode. But in mainline mode we get wrong behaviour.

Copy link
Member

Choose a reason for hiding this comment

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

Aha, that makes sense.

@asbjornu
Copy link
Member

Can you please do a rebase of this branch on top of the latest HEAD of master?

@Dobriy33
Copy link
Contributor Author

Done.

@asbjornu asbjornu merged commit 7c45c5c into GitTools:master Feb 19, 2018
@asbjornu
Copy link
Member

Excellent, thanks!

@Dobriy33 Dobriy33 deleted the feature/fix-develop-in-mainline-mode branch February 19, 2018 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants