Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hwdb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Project 'brainscales/hwdb' was moved to 'ri/tech-hub/apps/brainscales/hwdb'. Please update any links and bookmarks that may still have the old path.
Show more breadcrumbs
EBRAINS RI
Tech Hub
Apps
BrainScaleS
hwdb
Commits
e0526147
Commit
e0526147
authored
2 years ago
by
Christian Mauch
Browse files
Options
Downloads
Patches
Plain Diff
This is ebrains-4.0
parent
5c9c32bc
No related branches found
Tags
ebrains-4.0-rc1-fixup1
ebrains-4.0-rc1-fixup2
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/Jenkinsfile
+54
-49
54 additions, 49 deletions
.ci/Jenkinsfile
.gitreview
+1
-1
1 addition, 1 deletion
.gitreview
with
55 additions
and
50 deletions
.ci/Jenkinsfile
+
54
−
49
View file @
e0526147
@Library
(
"jenlib"
)
_
@Library
(
"jenlib
@ebrains-4.0
"
)
_
Map
<
String
,
Object
>
bss1PipelineArgs
=
[
container
:
[
app:
"wafer"
],
// Don't build BSS1
configureInstallOptions:
"--without-pybind"
,
//Map<String, Object> bss1PipelineArgs = [container : [app: "wafer"],
notificationChannel:
"#visionary-wafer-users"
]
// configureInstallOptions: "--without-pybind",
// notificationChannel: "#visionary-wafer-users"]
Map
<
String
,
Object
>
bss2PipelineArgs
=
[
container
:
[
app:
"dls"
],
Map
<
String
,
Object
>
bss2PipelineArgs
=
[
container
:
[
app:
"dls"
],
setupOptions
:
"--release-branch=ebrains-4.0"
,
notificationChannel:
"#dls-software"
]
notificationChannel:
"#dls-software"
]
// BSS-2
// BSS-2
...
@@ -15,7 +17,10 @@ withCcache() {
...
@@ -15,7 +17,10 @@ withCcache() {
try
{
try
{
Boolean
isMergeEvent
=
env
.
GERRIT_EVENT_TYPE
==
"change-merged"
Boolean
isMergeEvent
=
env
.
GERRIT_EVENT_TYPE
==
"change-merged"
Boolean
isSuccessful
=
currentBuild
.
currentResult
==
"SUCCESS"
Boolean
isSuccessful
=
currentBuild
.
currentResult
==
"SUCCESS"
Boolean
doDeploy
=
isMergeEvent
&&
isSuccessful
// We do not deploy hwdb in ebrains-4.0
//Boolean doDeploy = isMergeEvent && isSuccessful
Boolean
doDeploy
=
false
conditionalStage
(
name:
"Yaml Deployment"
,
skip:
!
doDeploy
)
{
conditionalStage
(
name:
"Yaml Deployment"
,
skip:
!
doDeploy
)
{
runOnSlave
(
label:
"frontend"
)
{
runOnSlave
(
label:
"frontend"
)
{
...
@@ -47,47 +52,47 @@ runOnSlave(label: "frontend") {
...
@@ -47,47 +52,47 @@ runOnSlave(label: "frontend") {
cleanWs
()
cleanWs
()
}
}
// BSS-1
//
// BSS-1
withCcache
()
{
//
withCcache() {
wafDefaultPipeline
([
projects:
[
"hwdb"
]]
<<
bss1PipelineArgs
)
//
wafDefaultPipeline([projects: ["hwdb"]] << bss1PipelineArgs)
}
//
}
//
// Syntax Check, to be migrated to a waf test (issue #3604)
//
// Syntax Check, to be migrated to a waf test (issue #3604)
stage
(
"Syntax Check"
)
{
//
stage("Syntax Check") {
inSingularity
(
bss1PipelineArgs
[
"container"
])
{
//
inSingularity(bss1PipelineArgs["container"]) {
runOnSlave
(
label:
"frontend"
)
{
//
runOnSlave(label: "frontend") {
jesh
(
"python -c \"import yaml; [None for elem in yaml.load_all(open('hwdb/db.yaml'), Loader=yaml.FullLoader)]\""
)
//
jesh("python -c \"import yaml; [None for elem in yaml.load_all(open('hwdb/db.yaml'), Loader=yaml.FullLoader)]\"")
}
//
}
}
//
}
}
//
}
//
try
{
//
try {
Boolean
isMergeEvent
=
env
.
GERRIT_EVENT_TYPE
==
"change-merged"
//
Boolean isMergeEvent = env.GERRIT_EVENT_TYPE == "change-merged"
Boolean
isSuccessful
=
currentBuild
.
currentResult
==
"SUCCESS"
//
Boolean isSuccessful = currentBuild.currentResult == "SUCCESS"
Boolean
doDeploy
=
isMergeEvent
&&
isSuccessful
//
Boolean doDeploy = isMergeEvent && isSuccessful
//
conditionalStage
(
name:
"Yaml Deployment"
,
skip:
!
doDeploy
)
{
//
conditionalStage(name: "Yaml Deployment", skip: !doDeploy) {
runOnSlave
(
label:
"frontend"
)
{
//
runOnSlave(label: "frontend") {
jesh
(
"cd /wang/data/bss-hwdb && "
+
//
jesh("cd /wang/data/bss-hwdb && " +
"umask 002 && "
+
// allow F9 to write stuff too
//
"umask 002 && " + // allow F9 to write stuff too
"cp ${WORKSPACE}/hwdb/db.yaml .db.yaml.tmp && "
+
//
"cp ${WORKSPACE}/hwdb/db.yaml .db.yaml.tmp && " +
"mv .db.yaml.tmp db.yaml"
)
//
"mv .db.yaml.tmp db.yaml")
}
//
}
}
//
}
//
conditionalStage
(
name:
"Module Deployment"
,
skip:
!
doDeploy
)
{
//
conditionalStage(name: "Module Deployment", skip: !doDeploy) {
runOnSlave
(
label:
"frontend"
)
{
//
runOnSlave(label: "frontend") {
inSingularity
(
bss1PipelineArgs
[
"container"
])
{
//
inSingularity(bss1PipelineArgs["container"]) {
deployModule
([
name
:
"hwdb_bss1"
,
//
deployModule([name : "hwdb_bss1",
source:
"bin/ lib/ repos_log.txt"
])
//
source: "bin/ lib/ repos_log.txt"])
}
//
}
}
//
}
}
//
}
}
catch
(
Throwable
t
)
{
//
} catch (Throwable t) {
notifyFailure
(
mattermostChannel:
bss1PipelineArgs
[
"notificationChannel"
])
//
notifyFailure(mattermostChannel: bss1PipelineArgs["notificationChannel"])
throw
t
//
throw t
}
//
}
//
if
(
currentBuild
.
currentResult
!=
"SUCCESS"
)
{
//
if (currentBuild.currentResult != "SUCCESS") {
notifyFailure
(
mattermostChannel:
bss1PipelineArgs
[
"notificationChannel"
])
//
notifyFailure(mattermostChannel: bss1PipelineArgs["notificationChannel"])
}
//
}
This diff is collapsed.
Click to expand it.
.gitreview
+
1
−
1
View file @
e0526147
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
host=brainscales-r.kip.uni-heidelberg.de
host=brainscales-r.kip.uni-heidelberg.de
port=29418
port=29418
project=hwdb
project=hwdb
defaultbranch=
master
defaultbranch=
ebrains-4.0
defaultremote=review
defaultremote=review
defaultrebase=0
defaultrebase=0
This diff is collapsed.
Click to expand it.
Preview
0%
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