Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
649e3d00
Commit
649e3d00
authored
Jun 08, 2023
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Reduce administrator actions to upgrade master
See merge request
!537
parents
19f4a9a5
c5204244
Pipeline
#28519
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/ERP5Site_upgradeERP5CoreBusinessTemplate.py
...apos_upgrader/ERP5Site_upgradeERP5CoreBusinessTemplate.py
+15
-1
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/ERP5Site_upgradeERP5CoreBusinessTemplate.xml
...pos_upgrader/ERP5Site_upgradeERP5CoreBusinessTemplate.xml
+1
-1
No files found.
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/ERP5Site_upgradeERP5CoreBusinessTemplate.py
View file @
649e3d00
template_tool
=
context
.
getPortalObject
().
portal_templates
portal
=
context
.
getPortalObject
()
template_tool
=
portal
.
portal_templates
template_tool
.
updateRepositoryBusinessTemplateList
(
template_tool
.
updateRepositoryBusinessTemplateList
(
template_tool
.
getRepositoryList
())
template_tool
.
getRepositoryList
())
...
@@ -13,3 +14,16 @@ method_kw = {'bt5_list': ['erp5_core'],
...
@@ -13,3 +14,16 @@ method_kw = {'bt5_list': ['erp5_core'],
template_tool
.
upgradeSite
(
**
method_kw
)
template_tool
.
upgradeSite
(
**
method_kw
)
if
skip_upgrader
:
return
"Skipped to upgrade slapos_upgrader"
# Use activities to ensure that it done on another transaction
tag
=
"upgrader:ERP5Site_upgradeUpgraderBusinessTemplate"
template_tool
.
activate
(
tag
=
tag
).
ERP5Site_upgradeUpgraderBusinessTemplate
()
if
skip_alarm
:
return
"Skipped to call portal_alarms.promise_check_upgrade.activeSense"
portal
.
portal_alarms
.
promise_check_upgrade
.
activate
(
tag
=
"upgrader:promise_check_upgrade"
,
after_tag
=
tag
).
activeSense
()
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/ERP5Site_upgradeERP5CoreBusinessTemplate.xml
View file @
649e3d00
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
skip_upgrader=None, skip_alarm=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
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