Skip to content

Commit

Permalink
December 2023 Delivery (#175)
Browse files Browse the repository at this point in the history
* update

* update

* fix build

* fix

* update

* fix

* fix

* update

* use v6

* update

* update

* update

* fix build number

* fix

* remove environmentChecks

* update

* cleanup

* update

* test

* test

* update

* test

* update

* update

* test

* update

* test

* update

* test

* update

* update

* update

* fix my shit

* fix

* fix

* cleanup

* fix

* update

* update

* update

* update

* test

* fix

* update

* fix

* update

* fix

* test

* fix

* test

* update

* cleanup

* fix

* test

* fix

* fix

* test

* update

* test

* fix

* update

* fix

* fix

* test

* test

* test

* update

* update

* fix

* test

* test

* update

* test

* update

* test

* test

* test

* update

* fix try

* ads sort

* update envOrder

* test

* cleanup

* update

* update

* fix

* fix

* fix

* update

* test

* update

* test

* test

* test

* update

* fix

* update

* fix

* update

* update

* update

* update

* update

* cleanup

* update

* update

* test

* cleanup

* add "vso.environment_manage"

* extension update

* update

* update

* update

* add "vso.agentpools"

* update

* test

* update

* test

* test

* update

* update

* update

* update

* test

* test

* update

* fix

* test

* test

* update

* test

* disable approvals for AzDo 2020 Servers

* update

* update

* update

* cleanup

* update

* test

* update

* update

* update

* update

* fix

* update

* test

* fix

* update

* update

* update

* update

* update

* fix

* fix

* cleanup

* update

* update

* update

* update

* update

* fix

* update

* fix

* test

* fix

* test

* update

* update

* update

* test

* update

* add sort

* test

* update

* cleanup

* update

* columns rename

* fix

* update

* update

* update

* update

* fix

* test

* test

* fix

* update

* update

* test

* update

* update

* update

* test

* ret

* update

* test

* update

* update view

* test

* test

* test

* fix

* update

* update

* test

* update

* cleanup

* cleanup

* cleanup

* fix

* update

* update

* update

* update

* update

* update

* update

* update

* update

* fix

* test

* update

* update

* update

* test

* update

* fix

* test

* test

* test

* test

* test

* update

* update

* fix

* fix

* cleanup

* add

* fix

* release note update

* fix

* update

* update

* cleanup

* update

* test

* update

* test

* fix
  • Loading branch information
lturmel authored Dec 8, 2023
1 parent 15969d5 commit 2c5fee2
Show file tree
Hide file tree
Showing 18 changed files with 18,964 additions and 14,710 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
dist
test.json
9 changes: 6 additions & 3 deletions CurrentReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Issues fixes

- ### [Issue0177](https://github.com/expertasolutions/AzDo.VstsDashboard/issues/177)
- Add Re-Activation message, in order to prepare the field for the new Release with Yaml Pipeline Stage Deployment Health
- Add back the option to ***Sent a request*** button.
- ### [Issue0170](https://github.com/expertasolutions/AzDo.VstsDashboard/issues/170)
- Add Pipeline Stage Deployment Health (Stage Status) visible under 'Deployment Health Columns.
- Refactor general UI

- ### [Issue0180](https://github.com/expertasolutions/AzDo.VstsDashboard/issues/180)
- Persist the last selected View (Summary|All Runs) selected by the user.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ The intention was to see what's currently happened into the CI/CD pipeline and p
![CICD_Screencapture](screenshots/CI_CD_Dashboard.png)

## **Important**:
- **Pipeline YAML**: Starting ***October 2023***, We've re-open this extension, due to some Azure DevOps Rest API enhancement for Environments deployment history & Approval.<br><s>Due to missing Rest API functionality to extract Pipeline Deployment Stage in Pipeline Yaml, they’re not supporting viewing Deployment Stage health. There is a way to extract the information, but this will cause a major overhead in terms of usability of this extension to your users account request per min on Azure DevOps Service.</s>
<br>***We expects to deploy new version with Pipeline Environment Stage Deployment health visual, before the end of 2023 year.***
- <s>**After February 5th, 2022**, there **no longer support** to enhance on this extension. Since we moved all of our Projects on GitHub</s>
- **Pipeline YAML**: Since ***October 2023***, We reopened this extension, due to some Azure DevOps Rest API enhancements & community requests.

## Permissions Authorization
Don't forget to Authorize the Extension permission under your Azure DevOps/Server Organization Settings/Extensions/CI/CD Dashboard.
Don't forget to Authorize the Extension permissions under your Azure DevOps/Server Organization Settings/Extensions/CI/CD Dashboard.

![Issue0141-01](screenshots/PermissionAuth.png)

## Azure DevOps Supported versions
- Azure DevOps Services
- Azure DevOps Server 2019 update 1 (17.153.29207.5) and later - see [Azure DevOps Server build numbers](https://docs.microsoft.com/en-us/azure/devops/release-notes/features-timeline#server-build-numbers)
- Azure DevOps Server 2022 (19.205.33122.1) or later

See [Azure DevOps Server build numbers](https://learn.microsoft.com/en-us/azure/devops/user-guide/lookup-platform-version?view=azure-devops)

## More informations
- **UI Guidelines**: The UI of this extension has been developed in accordance of the [Formula Design System](https://developer.microsoft.com/en-ca/azure-devops) provided by Microsoft.
Expand Down
33 changes: 33 additions & 0 deletions _pipelineTemplates/extension-deploy-fake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
parameters:
- name: publisherId
type: string
- name: extensionId
type: string
- name: extensionName
type: string
- name: updateTasksId
type: boolean
default: false
- name: extensionVisibility
type: string
- name: shareWith
type: string
- name: releaseNoteAction
type: string
- name: releaseNoteVersion
type: string
- name: releaseNoteDisplayName
type: string
- name: releaseNoteIsDraft
type: boolean
default: false
- name: releaseNoteIsPreRelease
type: boolean
default: false

steps:
- task: VersionExtractor@5
name: build
displayName: 'Version extractor digit'
inputs:
stringToAnalyze: '$(build.buildnumber)'
121 changes: 121 additions & 0 deletions ci-vstsdashboardbuild-test2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: testlouis-v1.$(date:yy)$(DayOfYear)$(rev:.r)-$(Build.SourceBranchName)

trigger:
- master
- Issue*
- Delivery*

pr:
- master
- Delivery*

stages:
- stage: Build
jobs:
- job: Build
pool:
vmImage: 'windows-latest'
demand: npm
workspace:
clean: true
steps:

- task: UseNode@1
displayName: 'Use Node 10.x'

- task: VersionExtractor@5
name: build
displayName: 'Version extractor digit'
inputs:
stringToAnalyze: '$(Build.BuildNumber)'

- stage: ExpertaPrivatePreview
dependsOn: Build
condition: and(
succeeded(),
or(
eq(variables['build.sourceBranch'], 'refs/heads/master')
, eq(variables['build.sourceBranch'], 'refs/heads/feature/*')
, eq(variables['build.sourceBranch'], 'refs/heads/Issue0170b')
, eq(variables['build.sourceBranch'], 'refs/heads/Delivery/*')
)
)
jobs:
- deployment: DeployExtension
pool:
vmImage: macOS-latest
demands: npm
#environment: ExpertaPrivatePreview
environment: ExpertaPrivate
strategy:
runOnce:
deploy:
steps:
- template: _pipelineTemplates/extension-deploy-fake.yml
parameters:
publisherId: ExpertaPreview
extensionId: pvprCICDDashboard
extensionName: 'Private Preview - CI/CD Dashboard'
updateTasksId: true
extensionVisibility: privatepreview
shareWith: experta
releaseNoteAction: create
releaseNoteVersion: '$(build.fullVersion)'
releasenoteDisplayName: 'Create Draft Release Note'
releaseNoteIsDraft: true

- stage: ExpertaPrivate
dependsOn: ExpertaPrivatePreview
condition: and(
succeeded(),
or(
eq(variables['build.sourceBranch'], 'refs/heads/master')
, eq(variables['build.sourceBranch'], 'refs/heads/Issue0170b')
)
)
jobs:
- deployment: DeployExtension
pool:
vmImage: macOS-latest
demands: npm
environment: ExpertaPrivate
strategy:
runOnce:
deploy:
steps:
- template: _pipelineTemplates/extension-deploy-fake.yml
parameters:
publisherId: ExpertaPreview
extensionId: prCICDDashboard
extensionName: 'Private - CI/CD Dashboard'
updateTasksId: true
extensionVisibility: private
shareWith: experta
releaseNoteAction: edit
releaseNoteVersion: '$(build.fullVersion)'
releasenoteDisplayName: 'Update Draft to Pre-Release notes'
releaseNoteIsPreRelease: true

- stage: ExpertaPublicMarketplace
dependsOn: ExpertaPrivate
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master'))
jobs:
- deployment: DeployExtension
pool:
vmImage: macOS-latest
demands: npm
environment: ExpertaPublicMarketplace
strategy:
runOnce:
deploy:
steps:
- template: _pipelineTemplates/extension-deploy-fake.yml
parameters:
publisherId: experta
extensionId: cicd-dashboard
extensionName: 'CI/CD Dashboard'
extensionVisibility: public
shareWith: experta
releaseNoteAction: edit
releaseNoteVersion: '$(build.fullVersion)'
releasenoteDisplayName: 'Update Pre-Release to Release notes'
56 changes: 41 additions & 15 deletions ci-vstsdashboardbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,45 @@ stages:
workspace:
clean: true
steps:

- task: UseNode@1
displayName: 'Use Node 10.x'
displayName: 'Use Node 20.x'
inputs:
version: 20.x

- task: VersionExtractor@5
name: build
displayName: 'Version extractor digit'
inputs:
stringToAnalyze: '$(Build.BuildNumber)'

- task: TfxInstaller@2
inputs:
displayName: 'Use Node CLI for Azure DevOps (tfx-cli): v0.6.x'

# Compile the extension
- task: Npm@1
displayName: 'Install Dependencies'
inputs:
command: ci
verbose: false
command: 'custom'
customCommand: 'install --force'

- task: Npm@1
displayName: 'Compile extension'
- task: Powershell@2
displayName: 'Compile Extension'
inputs:
targetType: 'inline'
script: |
$env:NODE_OPTIONS = "--openssl-legacy-provider"
npm run compile
# Package the extension
- task: UseNode@1
displayName: 'Use Node 10.x'
inputs:
version: 10.x

- task: TfxInstaller@2
inputs:
command: custom
verbose: false
customCommand: 'run compile'
displayName: 'Use Node CLI for Azure DevOps (tfx-cli): v0.6.x'

- task: PackageAzureDevOpsExtension@2
displayName: 'Package Extension: '
displayName: 'Package Extension'
inputs:
rootFolder:
patternManifest: |
Expand All @@ -71,13 +82,22 @@ stages:

- stage: ExpertaPrivatePreview
dependsOn: Build
condition: succeeded()
condition: and(
succeeded(),
or(
eq(variables['build.sourceBranch'], 'refs/heads/master')
, eq(variables['build.sourceBranch'], 'refs/heads/feature/*')
, eq(variables['build.sourceBranch'], 'refs/heads/Issue0170b')
, eq(variables['build.sourceBranch'], 'refs/heads/Delivery/*')
)
)
jobs:
- deployment: DeployExtension
pool:
vmImage: macOS-latest
demands: npm
environment: ExpertaPrivatePreview
#environment: ExpertaPrivate
strategy:
runOnce:
deploy:
Expand All @@ -97,7 +117,13 @@ stages:

- stage: ExpertaPrivate
dependsOn: ExpertaPrivatePreview
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master'))
condition: and(
succeeded(),
or(
eq(variables['build.sourceBranch'], 'refs/heads/master')
, eq(variables['build.sourceBranch'], 'refs/heads/Issue0170b')
)
)
jobs:
- deployment: DeployExtension
pool:
Expand Down
Loading

0 comments on commit 2c5fee2

Please sign in to comment.