From 71deace2873da1649a946c6af2e86d4fe7ea3d43 Mon Sep 17 00:00:00 2001 From: Hector Morales Date: Mon, 9 Dec 2024 14:50:18 -0800 Subject: [PATCH 1/5] Add log level param --- .pipelines/1p-build.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.pipelines/1p-build.yml b/.pipelines/1p-build.yml index a122fd25ca..10ecf0fcf1 100644 --- a/.pipelines/1p-build.yml +++ b/.pipelines/1p-build.yml @@ -1,3 +1,16 @@ +parameters: + - name: npmDebugLevel + type: string + default: "notice" + values: + - "notice" + - "silent" + - "error" + - "warn" + - "http" + - "info" + - "verbose" + - "silly" variables: CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning LinuxContainerImage: "mcr.microsoft.com/onebranch/cbl-mariner/build:2.0" # Docker image which is used to build the project https://aka.ms/obpipelines/containers @@ -35,10 +48,12 @@ extends: parameters: libName: msal-common path: "lib/" + npmDebugLevel: ${{ parameters.npmDebugLevel }} - template: .pipelines/templates/ci-template.yml@1P parameters: libName: msal-browser path: "lib/" + npmDebugLevel: ${{ parameters.npmDebugLevel }} - template: .pipelines/templates/ci-template.yml@1P parameters: libName: msal-browser-1p @@ -47,16 +62,20 @@ extends: parameters: libName: msal-node path: "lib/" + npmDebugLevel: ${{ parameters.npmDebugLevel }} - template: .pipelines/templates/ci-template.yml@1P parameters: libName: msal-react path: "lib/" + npmDebugLevel: ${{ parameters.npmDebugLevel }} - template: .pipelines/templates/ci-template.yml@1P parameters: libName: msal-angular path: "lib/" + npmDebugLevel: ${{ parameters.npmDebugLevel }} - template: .pipelines/templates/ci-template.yml@1P parameters: libName: msal-node-extensions path: "extensions/" os: ["linux", "windows", "macOs"] + npmDebugLevel: ${{ parameters.npmDebugLevel }} From e57dc32ff4c91e5115cf7cf4c70ed53f272b16c5 Mon Sep 17 00:00:00 2001 From: Hector Morales Date: Mon, 9 Dec 2024 14:51:34 -0800 Subject: [PATCH 2/5] Update displayName --- .pipelines/1p-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pipelines/1p-build.yml b/.pipelines/1p-build.yml index 10ecf0fcf1..158cd57199 100644 --- a/.pipelines/1p-build.yml +++ b/.pipelines/1p-build.yml @@ -1,5 +1,6 @@ parameters: - name: npmDebugLevel + displayName: "NPM Debug Level" type: string default: "notice" values: From bae1e12bb1107e05bcb88999e929f83e1f903ee8 Mon Sep 17 00:00:00 2001 From: Hector Morales Date: Mon, 9 Dec 2024 14:57:58 -0800 Subject: [PATCH 3/5] Update branch ref --- .pipelines/1p-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pipelines/1p-build.yml b/.pipelines/1p-build.yml index 158cd57199..75b9d783a8 100644 --- a/.pipelines/1p-build.yml +++ b/.pipelines/1p-build.yml @@ -31,7 +31,7 @@ resources: - repository: 1P type: git name: IDDP/msal-javascript-1p - ref: master + ref: debug-log-level extends: template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates From 8867304b01b47b04fb8ebcf16e31501155368257 Mon Sep 17 00:00:00 2001 From: Hector Morales Date: Mon, 9 Dec 2024 14:59:49 -0800 Subject: [PATCH 4/5] Fix typo --- .pipelines/1p-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pipelines/1p-build.yml b/.pipelines/1p-build.yml index 75b9d783a8..adc50c8483 100644 --- a/.pipelines/1p-build.yml +++ b/.pipelines/1p-build.yml @@ -31,7 +31,7 @@ resources: - repository: 1P type: git name: IDDP/msal-javascript-1p - ref: debug-log-level + ref: debug-log-config extends: template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates From 081209ee54109ddbff657cc80dcf6ce4bf26a986 Mon Sep 17 00:00:00 2001 From: Hector Morales Date: Mon, 9 Dec 2024 15:41:49 -0800 Subject: [PATCH 5/5] Switch to verbose boolean --- .pipelines/1p-build.yml | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/.pipelines/1p-build.yml b/.pipelines/1p-build.yml index adc50c8483..199a56865c 100644 --- a/.pipelines/1p-build.yml +++ b/.pipelines/1p-build.yml @@ -1,17 +1,10 @@ parameters: - - name: npmDebugLevel - displayName: "NPM Debug Level" - type: string - default: "notice" - values: - - "notice" - - "silent" - - "error" - - "warn" - - "http" - - "info" - - "verbose" - - "silly" + - name: verboseNpmLogs + type: boolean + default: false + values: + - true + - false variables: CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning LinuxContainerImage: "mcr.microsoft.com/onebranch/cbl-mariner/build:2.0" # Docker image which is used to build the project https://aka.ms/obpipelines/containers @@ -49,12 +42,12 @@ extends: parameters: libName: msal-common path: "lib/" - npmDebugLevel: ${{ parameters.npmDebugLevel }} + verboseNpmLogs: ${{ parameters.verboseNpmLogs }} - template: .pipelines/templates/ci-template.yml@1P parameters: libName: msal-browser path: "lib/" - npmDebugLevel: ${{ parameters.npmDebugLevel }} + verboseNpmLogs: ${{ parameters.verboseNpmLogs }} - template: .pipelines/templates/ci-template.yml@1P parameters: libName: msal-browser-1p @@ -63,20 +56,20 @@ extends: parameters: libName: msal-node path: "lib/" - npmDebugLevel: ${{ parameters.npmDebugLevel }} + verboseNpmLogs: ${{ parameters.verboseNpmLogs }} - template: .pipelines/templates/ci-template.yml@1P parameters: libName: msal-react path: "lib/" - npmDebugLevel: ${{ parameters.npmDebugLevel }} + verboseNpmLogs: ${{ parameters.verboseNpmLogs }} - template: .pipelines/templates/ci-template.yml@1P parameters: libName: msal-angular path: "lib/" - npmDebugLevel: ${{ parameters.npmDebugLevel }} + verboseNpmLogs: ${{ parameters.verboseNpmLogs }} - template: .pipelines/templates/ci-template.yml@1P parameters: libName: msal-node-extensions path: "extensions/" os: ["linux", "windows", "macOs"] - npmDebugLevel: ${{ parameters.npmDebugLevel }} + verboseNpmLogs: ${{ parameters.verboseNpmLogs }}