Skip to content

Commit

Permalink
Optimize change log and prepare for trusted publisher program (#15)
Browse files Browse the repository at this point in the history
* refactored pipeline into template

* moved change logs to only be viewable on the GitHub pages.

* preparation for trusted publisher program

* added privacy notice

* added license notice

* added support link

* badge updates marketplace page
  • Loading branch information
SebastianSchuetze authored Apr 13, 2020
1 parent 8a08c5d commit 2323cf6
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 36 deletions.
2 changes: 1 addition & 1 deletion BuildPreparation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ else {
$output = [System.IO.Path]::GetFullPath($output)

if ($prepareExtension) {
. ./tools/PrepareExtension.ps1 -sourcePath $sourcePath -outputDir $outputDir -generateChangeLog
. ./tools/PrepareExtension.ps1 -sourcePath $sourcePath -outputDir $outputDir
Write-Output "Publish complete to $outputDir"
}

Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ stages:
parameters:
CodeCoverage: 'true'

- pwsh: '$(Build.SourcesDirectory)/tools/PrepareExtension.ps1 -sourcePath $(sourcePath) -outputDir $(outputDir) -generateChangeLog'
- pwsh: '$(Build.SourcesDirectory)/tools/PrepareExtension.ps1 -sourcePath $(sourcePath) -outputDir $(outputDir)'
displayName: 'Merge Extension Files for Build'

- template: YamlTemplates/codeAnalysis.yml
Expand Down
17 changes: 17 additions & 0 deletions docs/privacy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Privacy
has_children: false
nav_order: 4
---

# Privacy Notice

The extension "Azure Policy and Governance Pipelines Tasks" provides the possibility to work with Azure DevOps pipelines to deploy Azure Policies from your repositories or artifact feeds. The extension is hosted by Azure DevOps itself.

## Stored Data

The data which is used by the extension is stored within the Azure DevOps agents or Azure DevOps itself. No data is stored on systems permanently which is owned by the creator of the application. No data which is processed through the extension (e.g. files from the repositories) is transferred or stored outside of Azure DevOps (Server as well as cloud hosted).

## Contact

If you have concerns please open an issue in the [respective repository](https://github.com/RazorSPoint/azure-devops-azure-policy-extension/issues).
3 changes: 3 additions & 0 deletions src/eula.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License

The license is the MIT license and can be [viewed from the open source repository](https://github.com/RazorSPoint/azure-devops-azure-policy-extension/blob/master/LICENSE).
3 changes: 3 additions & 0 deletions src/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ This task is intended to make it easier for you to publish Azure Policies to you

This task is intended to make it easier for you to publish Policy Sets (Initiatives) to your azure tenant. This tasks needs a Azure Resource Manager service connection with a properly configured service principal.

## Change Logs

Change logs can be found [on the documentation pages on GitHub](https://razorspoint.github.io/azure-devops-azure-policy-extension/CHANGELOG.html).
3 changes: 3 additions & 0 deletions src/privacy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Privacy

The privacy notes can viewed from the [provided GitHub pages](https://razorspoint.github.io/azure-devops-azure-policy-extension/privacy.html).
29 changes: 24 additions & 5 deletions src/vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "rp-build-release-azurepolicy",
"name": "Azure Policy and Governance Pipelines Tasks",
"version": "2.0.3",
"version": "2.0.4",
"publisher": "RazorSPoint",
"targets": [{
"id": "Microsoft.VisualStudio.Services"
Expand All @@ -24,9 +24,15 @@
"content": {
"details": {
"path": "overview.md"
},
"license": {
"path": "eula.md"
},
"privacypolicy": {
"path":"privacy.md"
}
},
"links": {
"links": {
"getstarted": {
"uri": "https://razorspoint.github.io/azure-devops-azure-policy-extension/"
},
Expand All @@ -35,6 +41,9 @@
},
"issues": {
"uri": "https://github.com/RazorSPoint/azure-devops-azure-policy-extension/issues"
},
"support": {
"uri": "https://github.com/RazorSPoint/azure-devops-azure-policy-extension/issues"
}
},
"repository": {
Expand All @@ -44,17 +53,27 @@
"badges": [
{
"href": "https://dev.azure.com/razorspoint/RP_Build-Release-AzurePolicy/_build/latest?definitionId=19",
"uri": "https://dev.azure.com/razorspoint/RP_Build-Release-AzurePolicy/_apis/build/status/RazorSPoint.azure-devops-azure-policy-extension?branchName=master",
"uri": "https://dev.azure.com/razorspoint/RP_Build-Release-AzurePolicy/_apis/build/status/RazorSPoint.azure-devops-azure-policy-extension?branchName=master&stageName=Build&jobName=Build%20Extension&label=Build",
"description": "Build"
},
{
"href": "https://dev.azure.com/razorspoint/RP_Build-Release-AzurePolicy/_build/latest?definitionId=19",
"uri": "https://img.shields.io/azure-devops/tests/razorspoint/RP_Build-Release-AzurePolicy/19?label=unit%20tests",
"description": "Passed Unit Tests"
},
{
"href": "https://dev.azure.com/razorspoint/RP_Build-Release-AzurePolicy/_build/latest?definitionId=19",
"uri": "https://img.shields.io/azure-devops/coverage/razorspoint/RP_Build-Release-AzurePolicy/19?label=code%20coverage",
"description": "Code Coverage"
},
{
"href": "https://dev.azure.com/RazorSPoint/RP_Build-Release-AzurePolicy/_build/latest?definitionId=19&branchName=master",
"uri": "https://dev.azure.com/razorspoint/RP_Build-Release-AzurePolicy/_apis/build/status/RazorSPoint.azure-devops-azure-policy-extension?branchName=master&stageName=Build",
"uri": "https://dev.azure.com/razorspoint/RP_Build-Release-AzurePolicy/_apis/build/status/RazorSPoint.azure-devops-azure-policy-extension?branchName=master&stageName=Staging&jobName=Test%20Release&label=Test%20Release",
"description": "Test Release"
},
{
"href": "https://dev.azure.com/RazorSPoint/RP_Build-Release-AzurePolicy/_build/latest?definitionId=19&branchName=master",
"uri": "https://dev.azure.com/razorspoint/RP_Build-Release-AzurePolicy/_apis/build/status/RazorSPoint.azure-devops-azure-policy-extension?branchName=master&stageName=Staging",
"uri": "https://dev.azure.com/razorspoint/RP_Build-Release-AzurePolicy/_apis/build/status/RazorSPoint.azure-devops-azure-policy-extension?branchName=master&stageName=Production&jobName=Public%20Marketplace&label=Live%20Release",
"description": "Live Release"
}
],
Expand Down
19 changes: 0 additions & 19 deletions tools/GenerateChangelog.ps1

This file was deleted.

11 changes: 1 addition & 10 deletions tools/PrepareExtension.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
[CmdletBinding()]
param(
[string]$sourcePath,
[string]$outputDir,
[switch]$generateChangeLog
[string]$outputDir
)
$ErrorActionPreference = "Stop"
try {
Expand All @@ -26,14 +25,6 @@ try {
Where-Object { $_.Name -in $excludesPaths } |
Remove-Item -Force -Recurse

if ($generateChangeLog) {
Write-Output "generating extension readme with changelogs"
. ./tools/GenerateChangelog.ps1 `
-outputFilePath "$outputDir/overview.md" `
-readmeFilePath "./$outputDir/overview.md" `
-changelogFilePath "./docs/CHANGELOG.md"
}

Write-Output "loading extension file from $outputDir\vss-extension.json"
$extensionFileJson = Get-Content -Path "$outputDir\vss-extension.json" | Out-String | ConvertFrom-Json

Expand Down

0 comments on commit 2323cf6

Please sign in to comment.