Skip to content

Commit a8d2ec4

Browse files
author
Hanzhang Zeng (Roger)
committed
Release 1.1.8
1 parent 52a7e67 commit a8d2ec4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/handlers/parameterValidator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ class ParameterValidator {
7070
return __awaiter(this, void 0, void 0, function* () {
7171
context.package = new packageUtility_1.Package(this._packagePath);
7272
context.scmCredentials = this._scmCredentials;
73-
context.authenticationType = this._scmCredentials ? authentication_type_1.AuthenticationType.Scm : authentication_type_1.AuthenticationType.Rbac;
73+
context.authenticationType = this._scmCredentials.appUrl ? authentication_type_1.AuthenticationType.Scm : authentication_type_1.AuthenticationType.Rbac;
7474
return context;
7575
});
7676
}
7777
parseScmCredentials(state, publishProfile) {
7878
return __awaiter(this, void 0, void 0, function* () {
7979
let creds = builder_1.Builder.GetDefaultScmCredential();
80-
if (publishProfile === undefined || publishProfile.trim() === "") {
80+
if (publishProfile === undefined || publishProfile === "") {
8181
return creds;
8282
}
8383
let xmlProfile = undefined;

0 commit comments

Comments
 (0)