+ triggers:
+ - timed: "{obj:cron}"
+ - gerrit:
+ server-name: "{gerrit-server-name}"
+ trigger-on: "{obj:gerrit_merge_triggers}"
+ projects:
+ - project-compare-type: ANT
+ project-pattern: "{project}"
+ branches:
+ - branch-compare-type: ANT
+ branch-pattern: "**/{branch}"
+ file-paths: "{obj:gerrit_trigger_file_paths}"
+
+ builders:
+ - lf-infra-pre-build
+ - lf-maven-install:
+ mvn-version: "{mvn-version}"
+ - lf-update-java-alternatives:
+ java-version: "{java-version}"
+ - lf-provide-maven-settings:
+ global-settings-file: "{mvn-global-settings}"
+ settings-file: "{mvn-settings}"
+ - shell: !include-raw-escape:
+ - ../shell/make-tar.sh
+ - lf-infra-deploy-maven-file:
+ global-settings-file: "{mvn-global-settings}"
+ settings-file: "{mvn-settings}"
+ mvn-version: "{mvn-version}"
+ repo-id: "{repo-id}"
+ group-id: "{group-id}"
+ upload-files-dir: "{upload-files-dir}"
+ maven-repo-url: "{maven-repo-url}"
+
+ publishers:
+ - lf-infra-publish
+
+- job-template:
+ id: akraino-project-stream-stage-config
+ name: "{project-name}-{stream}-stage-config"
+
+ ######################
+ # Default parameters #
+ ######################
+
+ archive-artifacts: >
+ **/*.log
+ **/hs_err_*.log
+ **/target/**/feature.xml
+ **/target/failsafe-reports/failsafe-summary.xml
+ **/target/surefire-reports/*-output.txt
+ build-days-to-keep: 14
+ build-timeout: 60
+ cron: "@daily"
+ disable-job: false
+ git-url: "$GIT_URL/$PROJECT"
+ github-url: "https://github.com"
+ java-version: openjdk8
+ mvn-global-settings: global-settings
+ mvn-goals: clean deploy
+ mvn-opts: ""
+ mvn-params: ""
+ mvn-version: mvn35
+ sign-artifacts: false
+ stream: master
+ submodule-recursive: true
+ upload-files-dir: m2repo # expected by "lftools deploy nexus-stage"
+
+ #####################
+ # Job Configuration #
+ #####################
+
+ project-type: freestyle
+ node: "{build-node}"
+
+ properties:
+ - lf-infra-properties:
+ build-days-to-keep: "{build-days-to-keep}"
+
+ parameters:
+ - lf-infra-parameters:
+ project: "{project}"
+ branch: "{branch}"
+ stream: "{stream}"
+ lftools-version: "{lftools-version}"
+ - lf-infra-maven-parameters:
+ mvn-opts: "{mvn-opts}"
+ mvn-params: "{mvn-params}"
+ mvn-version: "{mvn-version}"
+ staging-profile-id: "{staging-profile-id}"
+ - string:
+ name: ARCHIVE_ARTIFACTS
+ default: "{archive-artifacts}"
+ description: Artifacts to archive to the logs server.
+ - string:
+ name: UPLOAD_FILES_PATH
+ default: "{upload-files-dir}"
+ description: File path to generate tarball and upload to repository.
+ - string:
+ name: STAGING_PROFILE_ID
+ default: "{staging-profile-id}"
+ description: Nexus staging profile ID.
+ - string:
+ name: STAGING_BUILD
+ default: "true"
+ description: Mark this as a staging build.
+
+ wrappers:
+ - lf-infra-wrappers:
+ build-timeout: "{build-timeout}"
+ jenkins-ssh-credential: "{jenkins-ssh-credential}"
+
+ gerrit_release_triggers:
+ - comment-added-contains-event:
+ comment-contains-value: stage-release$
+
+ disabled: "{disable-job}"
+
+ scm:
+ - lf-infra-gerrit-scm:
+ jenkins-ssh-credential: "{jenkins-ssh-credential}"
+ git-url: "{git-url}"
+ refspec: "$GERRIT_REFSPEC"
+ branch: "$GERRIT_BRANCH"
+ submodule-recursive: "{submodule-recursive}"
+ submodule-timeout: "{submodule-timeout}"
+ submodule-disable: false
+ choosing-strategy: default
+
+ triggers:
+ - timed: "{obj:cron}"
+ - gerrit:
+ server-name: "{gerrit-server-name}"
+ trigger-on: "{obj:gerrit_release_triggers}"
+ projects:
+ - project-compare-type: ANT
+ project-pattern: "{project}"
+ branches:
+ - branch-compare-type: ANT
+ branch-pattern: "**/{branch}"
+