henge-ruff-jenkins
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -12,4 +12,4 @@ "use strict"; | ||
const dotgit_1 = require('dotgit'); | ||
const BRANCH = process.env['GIT_BRANCH']; | ||
const JENKINS_URL = process.env['JENKINS_URL'] || 'http://jenkins.nanchao.org:8080/'; | ||
const BRANCH = process.env['GIT_BRANCH']; | ||
const henge_1 = require('henge'); | ||
@@ -35,7 +35,9 @@ class default_1 { | ||
let configJobName = this.getFullJobName('config'); | ||
let configUrl = this.project.local ? | ||
process.env['HENGE_RUFF_LOCAL_CONFIG'] || '.' : | ||
URL.resolve(JENKINS_URL, `/job/${configJobName}/lastSuccessfulBuild/artifact`); | ||
return { | ||
branch: this.branch, | ||
build: process.env['BUILD_NUMBER'] || 'local', | ||
jenkinsUrl: JENKINS_URL, | ||
embeddedPlatformsConfigurationUrl: URL.resolve(JENKINS_URL, `/job/${configJobName}/lastSuccessfulBuild/artifact/embedded-platforms.json`) | ||
configUrl | ||
}; | ||
@@ -59,2 +61,14 @@ } | ||
} | ||
getDefaultArtifactId(platform) { | ||
let project = this.project; | ||
let id = `${project.name}-${project.version}`; | ||
if (platform) { | ||
id += `-${platform.name}`; | ||
} | ||
let build = process.env['BUILD_NUMBER']; | ||
if (build && this.branch !== 'master') { | ||
id += `-SNAPSHOT-${build}`; | ||
} | ||
return id; | ||
} | ||
} | ||
@@ -61,0 +75,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
{ | ||
"name": "henge-ruff-jenkins", | ||
"description": "Ruff Jenkins Plugin for Henge", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"main": "bld/index.js", | ||
@@ -12,3 +12,3 @@ "dependencies": { | ||
"peerDependencies": { | ||
"henge": "^0.2.0" | ||
"henge": "^0.2.4" | ||
}, | ||
@@ -15,0 +15,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
7510
4
88
1
35
5