Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iml-backup
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
iml-backup
Merge requests
!101
Desktop notification
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Desktop notification
desktop-notify
into
master
Overview
0
Commits
11
Pipelines
0
Changes
1
Merged
Desktop notification
Hahn Axel (hahn)
requested to merge
desktop-notify
into
master
Apr 12, 2023
Overview
0
Commits
11
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
a45d30d0
Prev
Next
Show latest version
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
a45d30d0
add date in notification body
· a45d30d0
Hahn Axel (hahn)
authored
Apr 12, 2023
jobhelper.sh
+
2
−
1
View file @ a45d30d0
Edit in single-file editor
Open in Web IDE
Show full file
@@ -14,6 +14,7 @@
# 2018-02-13 ah,ds v1.3 detect samba shares based on a flag
# 2022-10-07 ah v1.4 unescape regex with space to prevent "grep: warning: stray \ before white space"
# 2023-03-17 ah v1.5 ignore required user on MS windows; source jobs/env if it exists; use varaiable FQDN
# 2023-04-12 ah v1.6 add desktop notification
# ================================================================================
@@ -430,7 +431,7 @@ function _getFqdn(){
# paran integer optional: exitcode; if set it adds a prefix OK or ERRROR on summary and sets urgency on error
function
j_notify
(){
local
_summary
=
"IML BACKUP ::
$1
"
local
_body
=
"
$2
"
local
_body
=
"
$(
date
+%H:%M:%S
)
$2
"
local
_rc
=
"
$3
"
local
_urgency
=
"normal"
Loading