Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Allow segments other than BuildNumber to be incremented if NEXT is specified in the sfdx-project.json #208

Merged
merged 3 commits into from
Nov 19, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class IncrementProjectBuildNumberImpl {
if (this.segment == "Patch") segments[2] = String(Number(segments[2]) + 1);

//Don't do anything, just return let the platform take care of the increment
if (segments[3] == "NEXT") {
if (segments[3] == "NEXT" && this.segment == "BuildNumber") {

SFPLogger.log("NEXT encountered in segment, will ignore all the option set in the task")
SFPLogger.log(`Version : ${selected_package["versionNumber"]}`);
Expand Down