[Pkg-javascript-commits] [node-coveralls] 302/332: better Jenkins detection

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:54:14 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-coveralls.

commit b9032a18bd8d7fba7eaa0924a77e810ec4d0935a
Author: Nick Merwin <n at mer.io>
Date:   Thu Apr 27 13:20:51 2017 -0700

    better Jenkins detection
---
 lib/getOptions.js | 4 ++--
 package.json      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/getOptions.js b/lib/getOptions.js
index ce3bcaf..68a0164 100644
--- a/lib/getOptions.js
+++ b/lib/getOptions.js
@@ -37,12 +37,12 @@ var getBaseOptions = function(cb){
     git_message = process.env.DRONE_COMMIT_MESSAGE;
   }
 
-  if (process.env.JENKINS_URL){
+  if (process.env.JENKINS_URL || process.env.JENKINS_HOME){
     options.service_name = 'jenkins';
     options.service_job_id = process.env.BUILD_ID;
     options.service_pull_request = process.env.ghprbPullId;
     git_commit = process.env.GIT_COMMIT;
-    git_branch = process.env.GIT_BRANCH;
+    git_branch = process.env.GIT_BRANCH || process.env.BRANCH_NAME;
   }
 
   if (process.env.CIRCLECI){
diff --git a/package.json b/package.json
index d3e8cac..1c56d61 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
     "coverage",
     "coveralls"
   ],
-  "version": "2.13.0",
+  "version": "2.13.1",
   "bugs": {
     "url": "https://github.com/nickmerwin/node-coveralls/issues"
   },

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git



More information about the Pkg-javascript-commits mailing list