From 76a28673bf4ab444c8c180602c751636f2006af6 Mon Sep 17 00:00:00 2001 From: Francesc Rosas Date: Sat, 11 Feb 2023 14:04:29 +0000 Subject: [PATCH] feat: add Harness CI (#107) --- README.md | 3 ++- index.d.ts | 1 + vendors.json | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a0c8be..a3ac770 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ if (ci.isCI) { Officially supported CI servers: | Name | Constant | isPR | -| ------------------------------------------------------------------------------- | -------------------- | ---- | +| ------------------------------------------------------------------------------- | ----------------------- | ---- | | [AWS CodeBuild](https://aws.amazon.com/codebuild/) | `ci.CODEBUILD` | 🚫 | | [AppVeyor](http://www.appveyor.com) | `ci.APPVEYOR` | ✅ | | [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/) | `ci.AZURE_PIPELINES` | ✅ | @@ -55,6 +55,7 @@ Officially supported CI servers: | [GitLab CI](https://about.gitlab.com/gitlab-ci/) | `ci.GITLAB` | ✅ | | [GoCD](https://www.go.cd/) | `ci.GOCD` | 🚫 | | [Google Cloud Build](https://cloud.google.com/build) | `ci.GOOGLE_CLOUD_BUILD` | 🚫 | +| [Harness CI](https://www.harness.io/products/continuous-integration) | `ci.HARNESS` | 🚫 | | [Heroku](https://www.heroku.com) | `ci.HEROKU` | 🚫 | | [Hudson](http://hudson-ci.org) | `ci.HUDSON` | 🚫 | | [Jenkins CI](https://jenkins-ci.org) | `ci.JENKINS` | ✅ | diff --git a/index.d.ts b/index.d.ts index 6d48115..8aebdcf 100644 --- a/index.d.ts +++ b/index.d.ts @@ -48,6 +48,7 @@ export const GITHUB_ACTIONS: boolean; export const GITLAB: boolean; export const GOCD: boolean; export const GOOGLE_CLOUD_BUILD: boolean; +export const HARNESS: boolean; export const HEROKU: boolean; export const HUDSON: boolean; export const JENKINS: boolean; diff --git a/vendors.json b/vendors.json index 9fc7a0b..2137117 100644 --- a/vendors.json +++ b/vendors.json @@ -136,6 +136,11 @@ "constant": "GOOGLE_CLOUD_BUILD", "env": "BUILDER_OUTPUT" }, + { + "name": "Harness CI", + "constant": "HARNESS", + "env": "HARNESS_BUILD_ID" + }, { "name": "Heroku", "constant": "HEROKU",