From 63ac18afde89e004608520e678398d37dd3f456e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 11 Dec 2018 12:00:22 +0100 Subject: [PATCH] set BUILD_TYPE to pr as default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski Signed-off-by: Igor Mandrigin --- ci/Jenkinsfile.android | 8 ++++++++ ci/Jenkinsfile.ios | 8 ++++++++ ci/Jenkinsfile.linux | 8 ++++++++ ci/Jenkinsfile.macos | 8 ++++++++ ci/Jenkinsfile.windows | 8 ++++++++ 5 files changed, 40 insertions(+) diff --git a/ci/Jenkinsfile.android b/ci/Jenkinsfile.android index 7f0e333948..8552e6af34 100644 --- a/ci/Jenkinsfile.android +++ b/ci/Jenkinsfile.android @@ -13,6 +13,14 @@ pipeline { )) } + parameters { + booleanParam( + name: 'BUILD_TYPE', + description: 'Specify build type. Values: pr / nightly / release', + defaultValue: 'pr', + ) + } + environment { BUILD_PLATFORM = 'android' LANG = 'en_US.UTF-8' diff --git a/ci/Jenkinsfile.ios b/ci/Jenkinsfile.ios index 51404b0255..9cc1af000d 100644 --- a/ci/Jenkinsfile.ios +++ b/ci/Jenkinsfile.ios @@ -1,6 +1,14 @@ pipeline { agent { label 'macos' } + parameters { + booleanParam( + name: 'BUILD_TYPE', + description: 'Specify build type. Values: pr / nightly / release', + defaultValue: 'pr', + ) + } + options { timestamps() /* Prevent Jenkins jobs from running forever */ diff --git a/ci/Jenkinsfile.linux b/ci/Jenkinsfile.linux index 44c1d0bfa7..2ac709df6f 100644 --- a/ci/Jenkinsfile.linux +++ b/ci/Jenkinsfile.linux @@ -14,6 +14,14 @@ pipeline { } } + parameters { + booleanParam( + name: 'BUILD_TYPE', + description: 'Specify build type. Values: pr / nightly / release', + defaultValue: 'pr', + ) + } + options { timestamps() /* Prevent Jenkins jobs from running forever */ diff --git a/ci/Jenkinsfile.macos b/ci/Jenkinsfile.macos index a4c92f01d3..5c3a45d8d8 100644 --- a/ci/Jenkinsfile.macos +++ b/ci/Jenkinsfile.macos @@ -1,6 +1,14 @@ pipeline { agent { label 'macos' } + parameters { + booleanParam( + name: 'BUILD_TYPE', + description: 'Specify build type. Values: pr / nightly / release', + defaultValue: 'pr', + ) + } + options { timestamps() /* Prevent Jenkins jobs from running forever */ diff --git a/ci/Jenkinsfile.windows b/ci/Jenkinsfile.windows index 35d70356de..63c19880e3 100644 --- a/ci/Jenkinsfile.windows +++ b/ci/Jenkinsfile.windows @@ -14,6 +14,14 @@ pipeline { } } + parameters { + booleanParam( + name: 'BUILD_TYPE', + description: 'Specify build type. Values: pr / nightly / release', + defaultValue: 'pr', + ) + } + options { /* Prevent Jenkins jobs from running forever */ timeout(time: 45, unit: 'MINUTES')