Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
4c6f3f35
Commit
4c6f3f35
authored
Jul 21, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only generate artifacts for the master branch
parent
dae251f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
Jenkinsfile
Jenkinsfile
+14
-9
No files found.
Jenkinsfile
View file @
4c6f3f35
...
@@ -123,11 +123,14 @@ def cmakeSteps(buildType, cmakeArgs, installDir) {
...
@@ -123,11 +123,14 @@ def cmakeSteps(buildType, cmakeArgs, installDir) {
workingDir:
'build'
,
workingDir:
'build'
,
])
])
}
}
zip
([
// Only generate artifacts for the master branch.
archive:
true
,
if
(
PrettyJobBaseName
==
'master'
)
{
dir:
installDir
,
zip
([
zipFile:
"${installDir}.zip"
,
archive:
true
,
])
dir:
installDir
,
zipFile:
"${installDir}.zip"
,
])
}
}
}
// Builds `name` with CMake and runs the unit tests.
// Builds `name` with CMake and runs the unit tests.
...
@@ -188,9 +191,11 @@ pipeline {
...
@@ -188,9 +191,11 @@ pipeline {
environment
{
environment
{
LD_LIBRARY_PATH
=
"$WORKSPACE/caf-sources/build/lib"
LD_LIBRARY_PATH
=
"$WORKSPACE/caf-sources/build/lib"
DYLD_LIBRARY_PATH
=
"$WORKSPACE/caf-sources/build/lib"
DYLD_LIBRARY_PATH
=
"$WORKSPACE/caf-sources/build/lib"
PrettyJobBaseName
=
env
.
JOB_BASE_NAME
.
replace
(
'%2F'
,
'/'
)
PrettyJobName
=
"CAF build #${env.BUILD_NUMBER} for $PrettyJobBaseName"
}
}
stages
{
stages
{
stage
(
'Git Checkout'
)
{
stage
(
'Git Checkout'
)
{
agent
{
label
'master'
}
agent
{
label
'master'
}
steps
{
steps
{
deleteDir
()
deleteDir
()
...
@@ -224,18 +229,18 @@ pipeline {
...
@@ -224,18 +229,18 @@ pipeline {
post
{
post
{
success
{
success
{
emailext
(
emailext
(
subject:
"✅
CAF build #${env.BUILD_NUMBER} succeeded for job ${env.JOB_NAME}
"
,
subject:
"✅
$PrettyJobName succeeded
"
,
recipientProviders:
[
culprits
(),
developers
(),
requestor
(),
upstreamDevelopers
()],
recipientProviders:
[
culprits
(),
developers
(),
requestor
(),
upstreamDevelopers
()],
body:
"Check console output at ${env.BUILD_URL}."
,
body:
"Check console output at ${env.BUILD_URL}."
,
)
)
}
}
failure
{
failure
{
emailext
(
emailext
(
subject:
"⛔️
CAF build #${env.BUILD_NUMBER} failed for job ${env.JOB_NAME}
"
,
subject:
"⛔️
$PrettyJobName failed
"
,
attachLog:
true
,
attachLog:
true
,
compressLog:
true
,
compressLog:
true
,
recipientProviders:
[
culprits
(),
developers
(),
requestor
(),
upstreamDevelopers
()],
recipientProviders:
[
culprits
(),
developers
(),
requestor
(),
upstreamDevelopers
()],
body:
"Check console output at ${env.BUILD_URL} or see attached log."
,
body:
"Check console output at ${env.BUILD_URL} or see attached log.
\n
"
,
)
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment