Skip to content

Commit ed459cc

Browse files
committedApr 30, 2018
Change CI env to JENKINS_CI
1 parent 1d8a9d8 commit ed459cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎scripts/release.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function run() {
1818
}
1919

2020
function validateEnv() {
21-
if (!process.env.CI) {
21+
if (!process.env.JENKINS_CI) {
2222
throw new Error(`releasing is only available from CI`);
2323
}
2424

‎scripts/test-e2e.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function run() {
1212
const prefix = android ? `android.emu` : `ios.sim`;
1313
const suffix = release ? `release` : `debug`;
1414
const configuration = `${prefix}.${suffix}`;
15-
const cleanup = process.env.CI ? `--cleanup` : ``;
15+
const cleanup = process.env.JENKINS_CI ? `--cleanup` : ``;
1616

1717
if (!skipBuild) {
1818
exec.execSync(`detox build --configuration ${configuration}`);

0 commit comments

Comments
 (0)
Failed to load comments.