An angular dashboard querying the rest API of different CI provider to monitor pipelines.
Node v14.15.x or later Angular 11.x or later
Generate personal access tokens (pat) in all CI providers needed (required to uery rest APIs of CI providers).🔑 Look here for DevOps and GitHub regarding how to generate your own pat.
Run npm install
In data.ts, for each item in cards replace the values with your own:
{ "family": "Acme", "name": "API Tests Dev", "datasource": "devops-build", "pat": "yourPersonalAccessToken",
"variables": {
"organization": "someOrganisationName",
"project": "someProjectName",
"definition": "someBuildName"
}
},
Make sure to do the above and simply run ng serve
for testing purpose.
For deploying your app locally without web server, bundle your app directly to deploy locally with ng build --configuration production
You can then copy/paste your dist/ folder anywhere and open the index.html file with your browser.
NB: If building your app, make sure to remove that line from yoru index.html file
<base href="/">
.
Have a look at the different rest APIs from your favorite CI providers, and add some more logic (create/update resources, retrieve other resources etc.) to fit your own needs. See here for DevOps Azure and GitHub rest APIs documentation 🧰
See the following post on Medium for more info. Don't hesitate if you have any questions.