Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
JenkinsConfiguration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChimeraTK Mirror
JenkinsConfiguration
Commits
9daf85eb
Commit
9daf85eb
authored
6 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
create builds.txt artefact also for doocs libraries
parent
aa20e48b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vars/buildDoocsLibrary.groovy
+12
-2
12 additions, 2 deletions
vars/buildDoocsLibrary.groovy
vars/buildTestDeploy.groovy
+15
-12
15 additions, 12 deletions
vars/buildTestDeploy.groovy
with
27 additions
and
14 deletions
vars/buildDoocsLibrary.groovy
+
12
−
2
View file @
9daf85eb
...
@@ -14,19 +14,29 @@ def call(String libraryName, ArrayList<String> dependencyList) {
...
@@ -14,19 +14,29 @@ def call(String libraryName, ArrayList<String> dependencyList) {
'bionic-Debug'
,
'bionic-Debug'
,
'bionic-Release'
]
'bionic-Release'
]
// publish our list of builds as artefact for our downstream builds
script
{
node
(
'Docker'
)
{
writeFile
file:
"builds.txt"
,
text:
builds
.
join
(
"\n"
)
archiveArtifacts
artifacts:
"builds.txt"
,
onlyIfSuccessful:
false
}
}
// form comma-separated list of dependencies as needed for the trigger configuration
def
dependencies
=
dependencyList
.
join
(
','
)
def
dependencies
=
dependencyList
.
join
(
','
)
if
(
dependencies
==
""
)
{
if
(
dependencies
==
""
)
{
dependencies
=
"Create Docker Images"
dependencies
=
"Create Docker Images"
}
}
pipeline
{
agent
none
// setup build trigger
// setup build trigger
triggers
{
triggers
{
pollSCM
'H/5 * * * *'
pollSCM
'H/5 * * * *'
upstream
dependencies
upstream
dependencies
}
}
pipeline
{
agent
none
stages
{
stages
{
stage
(
'build'
)
{
stage
(
'build'
)
{
// Run the build stages for all labels + build types in parallel, each in a separate docker container
// Run the build stages for all labels + build types in parallel, each in a separate docker container
...
...
This diff is collapsed.
Click to expand it.
vars/buildTestDeploy.groovy
+
15
−
12
View file @
9daf85eb
...
@@ -17,22 +17,25 @@ def call(ArrayList<String> dependencyList, String gitUrl='') {
...
@@ -17,22 +17,25 @@ def call(ArrayList<String> dependencyList, String gitUrl='') {
// only keep builds which exist for all dependencies
// only keep builds which exist for all dependencies
script
{
script
{
dependencyList
.
each
{
node
(
'Docker'
)
{
if
(
it
!=
""
)
{
dependencyList
.
each
{
copyArtifacts
filter:
"builds.txt"
,
fingerprintArtifacts:
true
,
projectName:
"${it}"
,
selector:
lastSuccessful
(),
target:
"artefacts"
if
(
it
!=
""
)
{
myFile
=
readFile
(
env
.
WORKSPACE
+
"/artefacts/builds.txt"
)
copyArtifacts
filter:
"builds.txt"
,
fingerprintArtifacts:
true
,
projectName:
"${it}"
,
selector:
lastSuccessful
(),
target:
"artefacts"
def
depBuilds
=
myFile
.
split
(
"\n"
)
myFile
=
readFile
(
env
.
WORKSPACE
+
"/artefacts/builds.txt"
)
builds
.
each
{
def
depBuilds
=
myFile
.
split
(
"\n"
)
if
(
depBuilds
.
find
{
it
==
owner
.
it
}
!=
it
)
{
builds
.
each
{
builds
.
removeAll
{
it
==
owner
.
it
}
def
build
=
it
if
(
depBuilds
.
find
{
it
==
build
}
!=
it
)
{
builds
.
removeAll
{
it
==
build
}
}
}
}
}
}
}
}
}
// publish our list of builds as artefact for our downstream builds
// publish our list of builds as artefact for our downstream builds
writeFile
(
"builds.txt"
,
builds
.
join
(
"\n"
))
writeFile
file:
"builds.txt"
,
text:
builds
.
join
(
"\n"
)
archiveArtifacts
artifacts:
"builds.txt"
,
onlyIfSuccessful:
false
archiveArtifacts
artifacts:
"builds.txt"
,
onlyIfSuccessful:
false
}
}
}
// form comma-separated list of dependencies as needed for the trigger configuration
// form comma-separated list of dependencies as needed for the trigger configuration
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment