Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
976aeee
Set up CI with Azure Pipelines
ShashiSingh72 Nov 30, 2025
0ab5c06
Set up CI with Azure Pipelines
ShashiSingh72 Dec 10, 2025
de17e62
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 10, 2025
0326d29
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 10, 2025
104f05a
Add sonar-project.properties configuration
ShashiSingh72 Dec 13, 2025
7bcdce5
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 19, 2025
1a82054
Update sonar-project.properties
ShashiSingh72 Dec 19, 2025
6b3991d
Create .stylelintrc.json
ShashiSingh72 Dec 25, 2025
035560a
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 25, 2025
e310e05
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 25, 2025
a03ac8a
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 25, 2025
db8bd1c
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 25, 2025
8774956
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 25, 2025
64ef17b
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 25, 2025
200caf4
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 25, 2025
612d6cd
Convert .stylelintrc.json to stylelint.config.mjs
ShashiSingh72 Dec 25, 2025
ecf97f8
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 25, 2025
024611e
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 27, 2025
394c207
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 27, 2025
23062c3
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 27, 2025
9b81053
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 27, 2025
0f7bfbf
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Dec 27, 2025
35dd81b
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
465702c
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
b71a2ab
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
15e1889
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
3ff22bd
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
35df86d
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
1cec494
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
772cfb6
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
6680ee1
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
5340cf0
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
10ee6a1
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
ab0d6a0
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
438e4e9
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
83df83a
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
9d54599
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
b235806
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
e8900ba
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
607fbaa
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
f2d9aac
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
96c32b3
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 4, 2026
3c44da8
Update azure-pipelines-1.yml for Azure Pipelines
ShashiSingh72 Jan 5, 2026
b131056
Update azure-pipelines.yml for Azure Pipelines
ShashiSingh72 Jan 5, 2026
8d3292c
Delete stylelint.config.mjs
ShashiSingh72 Jan 5, 2026
ff59831
Update sonar-project.properties
ShashiSingh72 Jan 5, 2026
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
5 changes: 5 additions & 0 deletions azure-pipelines-1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
trigger: none

pool: my agent pool

steps:
163 changes: 155 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,155 @@
trigger: none
pool: Default

steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: 'Write-Host "Hello World"'
trigger: none

pool: my agent pool

stages:
# - stage: CodeQualityChecks
# jobs:
# - job: Biome_Scan
# steps:
# - task: PowerShell@2
# displayName: Biome_Scan
# continueOnError: true
# inputs:
# targetType: 'inline'
# script: 'biome lint .\src --reporter=junit > result22.xml'
# - task: PublishPipelineArtifact@1
# displayName: Biome_Result
# inputs:
# targetPath: '$(Pipeline.Workspace)'
# artifact: 'Biome artifact'
# publishLocation: 'pipeline'

# - job: Markdownlint_Scan
# dependsOn: Biome_Scan
# displayName: Markdownlint_Scan
# steps:
# - task: PowerShell@2
# displayName: Markdownlint_Scan
# continueOnError: true
# inputs:
# targetType: 'inline'
# script: |
# npm install -g markdownlint-cli
# markdownlint .\README.md --json -o markresult.json

# - job: Yamllint_Scan
# dependsOn: Markdownlint_Scan
# displayName: Yamllint_Scan
# steps:
# - task: PowerShell@2
# displayName: Yamllint_Scan
# continueOnError: true
# inputs:
# targetType: 'inline'
# script: |
# pip install --user yamllint
# yamllint $(System.DefaultWorkingDirectory)

# - job: Stylelint_Scan
# dependsOn: Yamllint_Scan
# steps:
# - task: PowerShell@2
# displayName: Stylelint Tool
# continueOnError: true
# inputs:
# targetType: 'inline'
# script: 'stylelint .\src\App.css --config stylelint.config.mjs'
# - task: PublishPipelineArtifact@1
# displayName: Stylelint_Result
# inputs:
# targetPath: '$(Pipeline.Workspace)/stylelintresult.json'
# artifact: 'stylelintresult.json'
# publishLocation: 'pipeline'

# - job: Stylelint_Tool2
# steps:
# - task: PowerShell@2
# displayName: Stylelint_Tool2
# continueOnError: true
# inputs:
# targetType: 'inline'
# script: |
# stylelint .\src\App.css `
# --config stylelint.config.mjs `
# --formatter json `
# > $(Pipeline.Workspace)/stylelintresult.json

# - task: PublishPipelineArtifact@1
# displayName: Stylelint_Result2
# inputs:
# targetPath: '$(Pipeline.Workspace)/stylelintresult.json'
# artifact: 'stylelint-result'
# publishLocation: 'pipeline'

# - stage: BuildAndPackage
# jobs:
# - job: BuildAndPackage
# displayName: BuildAndPackage
# steps:
# - task: NodeTool@0
# displayName: Install_NodeJS
# inputs:
# versionSource: 'spec'
# versionSpec: '20.x'
# - task: PowerShell@2
# displayName: npm_install
# inputs:
# targetType: 'inline'
# script: 'npm install'
# - task: PowerShell@2
# displayName: npm_run_build
# inputs:
# targetType: 'inline'
# script: 'npm run build'
# - task: PublishPipelineArtifact@1
# displayName: build_artifact
# inputs:
# targetPath: '$(System.DefaultWorkingDirectory)/build'
# artifact: 'todouiapp'
# publishLocation: 'pipeline'

- stage: Downloadpackage
jobs:
- job: Downloadpackage
displayName: Downloadpackage
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: 'a0f1484e-6430-4e5a-a152-69063a459b63'
definition: '44'
buildVersionToDownload: 'specific'
pipelineId: '584'
artifactName: 'todouiapp'
targetPath: '$(System.DefaultWorkingDirectory)/build/'

- task: CopyFilesOverSSH@0
inputs:
sshEndpoint: 'vm_ssh'
sourceFolder: '$(System.DefaultWorkingDirectory)/build/'
contents: '**'
targetFolder: '/var/www/html'
readyTimeout: '20000'

- stage: Static_Code_Analysis
jobs:
- job: SonarQube_Scan
displayName: SonarQube_Scan
steps:
- task: SonarQubePrepare@8
inputs:
SonarQube: 'ado-sonar-svc'
scannerMode: 'cli'
configMode: 'manual'
cliProjectKey: 'todo-ui-001'
cliProjectName: 'todo-ui-001'
cliSources: '.'

- task: SonarQubeAnalyze@8
inputs:
jdkversion: 'JAVA_HOME_17_X64'

- task: SonarQubePublish@8
inputs:
pollingTimeoutSec: '300'
6 changes: 6 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sonar.projectName=todo-ui-001
sonar.projectKey=todo-ui-001
sonar.sources=.
sonar.sourceEncoding=UTF-8
sonar.host.url=http://localhost:9000
sonar.token=sqp_a4d6aed67106f266e9e1b7ba6ac1126a215c6838