- shell: !include-raw-escape:
- ../shell/license-check.sh
+- builder:
+ name: lf-infra-capture-instance-metadata
+ builders:
+ - shell: !include-raw:
+ - ../shell/capture-instance-metadata.sh
+
- builder:
name: lf-infra-create-netrc
builders:
condition-kind: regex-match
regex: "^.*logs-s3.*"
label: $S3_BUCKET
+ on-evaluation-failure: dont-run
steps:
- config-file-provider:
files:
- shell: !include-raw:
- ../shell/logs-clear-credentials.sh
- description-setter:
- regexp: "^Build logs: .*"
+ regexp: "(^(Nexus|S3) build logs: .*)"
- builder:
name: lf-infra-package-listing
variable: CLOUDENV
- inject:
properties-content: |
+ PACKER_BUILDER={packer-builder}
PACKER_PLATFORM={platform}
PACKER_TEMPLATE={template}
PACKER_VERSION={packer-version}
- shell: !include-raw-escape: ../shell/maven-central.sh
- lf-provide-maven-settings-cleanup
+- builder:
+ name: lf-packagecloud-file-provider
+ builders:
+ - config-file-provider:
+ files:
+ - file-id: ".packagecloud"
+ target: "$HOME/.packagecloud"
+ - config-file-provider:
+ files:
+ - file-id: "packagecloud_api"
+ target: "$HOME/packagecloud_api"
+
+- builder:
+ name: lf-packagecloud-push
+ builders:
+ - inject:
+ properties-content: |
+ BUILD_DIR={build-dir}
+ PACKAGECLOUD_ACCOUNT={packagecloud-account}
+ PACKAGECLOUD_REPO={packagecloud-repo}
+ DEBIAN_DISTRIBUTION_VERSIONS={debian-distribution-versions}
+ RPM_DISTRIBUTION_VERSIONS={rpm-distribution-versions}
+ - shell: !include-raw-escape: ../shell/packagecloud-push.sh
+
- builder:
name: lf-maven-install
builders:
java-opts: "{sonar-java-opts}"
additional-arguments: "{sonar-additional-args}"
+- builder:
+ name: lf-infra-pipeline-verify
+ builders:
+ - shell: !include-raw-escape: ../shell/pipeline-linter.sh
+
##############
# PARAMETERS #
##############
+- parameter:
+ name: lf-autotools-parameters
+ # Parameters for configure-make builds.
+ parameters:
+ - string:
+ name: CONFIGURE_OPTS
+ default: "{configure-opts}"
+ description: |
+ Options to pass to configure.
+ Example: --build=i686-pc-linux-gnu
+ - string:
+ name: INSTALL_PREFIX
+ default: "{install-prefix}"
+ description: |
+ Install prefix for configure.
+ Usually a workspace subdirectory.
+ - string:
+ name: MAKE_OPTS
+ default: "{make-opts}"
+ description: |
+ Options to pass to make.
+ Example: -j8 all
+
- parameter:
name: lf-clm-parameters
parameters:
default: "{tox-envs}"
description: |
Tox environments to run build against.
- Example: docs,py2,py3
+ Example: docs,py3
- parameter:
name: lf-build-with-parameters-maven-release
name: LOG_DIR
default: ""
description: "Log dir, for example: project-maven-stage-master/17/"
+ - string:
+ name: OVERRIDE_SEMVER_REGEX
+ default: ""
+ description: "Override Semantic Version (SemVer) Regular Expression. Ex: '.*'"
- choice:
name: DISTRIBUTION_TYPE
choices:
build-steps:
- lf-infra-sysstat
- lf-infra-package-listing
+ - lf-infra-capture-instance-metadata
- lf-infra-ship-logs
mark-unstable-if-failed: true
- workspace-cleanup:
- "**/*.jenkins-trigger"
fail-build: false
+- publisher:
+ name: global-jjb-email-notification
+ publishers:
+ - email-ext:
+ recipients: "{email-recipients}"
+ reply-to: ""
+ content-type: default
+ subject: "{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!"
+ body: |
+ $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
+
+ Please refer to the logs server URL for console logs when possible
+ and use the Jenkins Build URL as a last resort.
+
+ Jenkins Build URL:
+ $BUILD_URL
+ unstable: true
+ fixed: true
+ send-to:
+ - recipients
+
#######
# SCM #
#######