This commit purposefully introduces a duplicate Jenkinsfile,
which is meant to be kept long enough for all
branches to receive it.
After this and when the Jenkins jobs point to the new Jenkinsfile,
CBI.Jenkinsfile can be removed without losing build histories in Jenkins
Signed-off-by: Nico Prediger <mail@nicoprediger.de>
Introduce boolean parameter TRIGGER_DOWNSTREAM_BUILD. The parameter
defaults to false normally except for milestone/release branches.
When the TRIGGER_DOWNSTREAM_BUILD flag is set, a test for a downstream
job with the same branch name is done via a curl command. When the
downstream job exists, it is triggered and the parameter value
TRIGGER_DOWNSTREAM_BUILD is propagated.
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
- Reduce envName to known environments per Jenkinsfile type:
- Jenkinsfile: remove CBI
- CBI.Jenkinsfile: remove CBI & TF
- CBI.Jenkinsfile: rename JIPP => JIRO
- Mark FAILURE, ABORTED, NOT_BUILD red
- Report FIXED only when the previous build was finished not with
SUCCESS
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Build steps defined in Jenkinsfile pass the built-in environment
variable 'JENKINS_URL' to the Gradle/Maven executions. This is evaluated
in the build scripts for upstream repository URLs. On Xtext JIPP this
will use upstream repos from JIPP. In local builds outside of Jenkins
the property defaults to Typefox CI like before.
Extend function jenkinsPipelineRepo() by upstreamBranch parameter and use this in the call.
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>