-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
1,178 additions
and
980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#!/usr/bin/env groovy | ||
|
||
@Library('caf-continuous-integration') _ | ||
|
||
// Configures the behavior of our stages. | ||
config = [ | ||
// Version dependency for the caf-continuous-integration library. | ||
ciLibVersion: 1.0, | ||
// GitHub path to repository. | ||
repository: 'zeek/broker', | ||
// List of enabled checks for email notifications. | ||
checks: [ | ||
'build', | ||
'tests', | ||
], | ||
// Default CMake flags. | ||
buildFlags: [ | ||
], | ||
// Our build matrix. Keys are the operating system labels and values are build configurations. | ||
buildMatrix: [ | ||
['Windows', [ | ||
numCores: 4, | ||
builds: ['release'], | ||
extraBuildFlags: [ | ||
'OPENSSL_ROOT_DIR:PATH=C:\\Program Files\\OpenSSL-Win64', | ||
], | ||
]], | ||
], | ||
] | ||
|
||
// Declarative pipeline for triggering all stages. | ||
pipeline { | ||
options { | ||
buildDiscarder(logRotator(numToKeepStr: '50', artifactNumToKeepStr: '3')) | ||
} | ||
agent { | ||
label 'master' | ||
} | ||
environment { | ||
PrettyJobBaseName = env.JOB_BASE_NAME.replace('%2F', '/') | ||
PrettyJobName = "Broker/$PrettyJobBaseName #${env.BUILD_NUMBER}" | ||
} | ||
stages { | ||
stage('Checkout') { | ||
steps { | ||
getSources(config) | ||
} | ||
} | ||
stage('Build') { | ||
steps { | ||
buildParallel(config) | ||
} | ||
} | ||
stage('Notify') { | ||
steps { | ||
collectResults(config, PrettyJobName) | ||
} | ||
} | ||
} | ||
post { | ||
failure { | ||
emailext( | ||
subject: "$PrettyJobName: " + config['checks'].collect{ "⛔️ ${it}" }.join(', '), | ||
recipientProviders: [culprits(), developers(), requestor(), upstreamDevelopers()], | ||
attachLog: true, | ||
compressLog: true, | ||
body: "Check console output at ${env.BUILD_URL} or see attached log.\n", | ||
) | ||
notifyAllChecks(config, 'failure', 'Failed due to earlier error') | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.