Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FWI
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
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
KIT
Mpp
FWI
Commits
445525c1
Commit
445525c1
authored
3 weeks ago
by
Christian Rheinbay
Browse files
Options
Downloads
Patches
Plain Diff
Delete gitpushopde.py
parent
42d48eaf
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitpushopde.py
+0
-24
0 additions, 24 deletions
gitpushopde.py
with
0 additions
and
24 deletions
gitpushopde.py
deleted
100644 → 0
+
0
−
24
View file @
42d48eaf
import
sys
from
datetime
import
datetime
ssh_command
=
"
ssh -t pde{num:02}.cluster
"
tmux_open
=
"
\"
tmux new-session -d -s {name:1};
"
tmux_path
=
"
tmux send-keys
\'
cd {path:1}
\'
C-m;
"
tmux_pull
=
"
tmux send-keys
\'
git pull
\'
C-m;
"
tmux_checkout
=
"
tmux send-keys
\'
git checkout {branch:1}
\'
C-m;
"
tmux_cmake
=
"
tmux send-keys
\'
cmake ..
\'
C-m;
"
tmux_exe
=
"
tmux send-keys
\'
python3 pdepipeline.py {alias} {project_path} {ci_job_name} {nr_processes}
\'
C-m;
\"
"
cfg
=
{
'
path
'
:
'
/home2/cr/FWIMain/build/
'
,
'
scc_alias
'
:
'
tx6298
'
,
'
project_path
'
:
'
/lsdf/kit/ianm/projects/mppci/fwi/
'
,
'
branch
'
:
str
(
sys
.
argv
[
1
]),
'
ci_job_name
'
:
str
(
sys
.
argv
[
2
]),
'
pde
'
:
int
(
sys
.
argv
[
3
]),
'
-n
'
:
str
(
sys
.
argv
[
4
])
}
s
=
cfg
[
'
ci_job_name
'
]
+
datetime
.
now
().
isoformat
(
timespec
=
'
seconds
'
).
replace
(
'
:
'
,
'
-
'
)
print
(
'
git push
'
)
print
(
ssh_command
.
format
(
num
=
cfg
[
'
pde
'
])
+
tmux_open
.
format
(
name
=
s
)
+
tmux_path
.
format
(
path
=
cfg
[
'
path
'
])
+
tmux_pull
+
tmux_checkout
.
format
(
branch
=
cfg
[
'
branch
'
])
+
tmux_cmake
+
tmux_exe
.
format
(
alias
=
cfg
[
'
scc_alias
'
],
project_path
=
cfg
[
'
project_path
'
],
ci_job_name
=
cfg
[
'
ci_job_name
'
],
nr_processes
=
cfg
[
'
-n
'
]))
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