Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
e3ef6e16
You need to sign in or sign up before continuing.
Commit
e3ef6e16
authored
Dec 06, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitask: add get last [task], use it in rpmbs
parent
a9d7a34a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
gitask
bin/gitask
+4
-0
rpmbs
bin/rpmbs
+2
-3
No files found.
bin/gitask
View file @
e3ef6e16
...
...
@@ -29,6 +29,10 @@ if [ "$1" = "get" ] ; then
#"
echo
"
$SUBTASK
"
exit
elif
[
"
$1
$2
$3
"
=
"get last "
]
||
[
"
$1
$2
$3
"
=
"get last task"
]
;
then
TASK
=
"
$(
ssh
$GEARHOST
task
ls
|
head
-n1
|
sed
-e
"s|^#
\(
[0-9]*
\)
.*|
\1
|g"
)
"
||
fatal
echo
"
$TASK
"
exit
else
fatal
"Unknown command
$1
$2
"
fi
...
...
bin/rpmbs
View file @
e3ef6e16
...
...
@@ -261,9 +261,8 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
if
[
-n
"
$PREPARETASK
"
]
;
then
if
[
-z
"
$TASKNUMBER
"
]
;
then
showcmd
"ssh
$GEARHOST
task ls"
TASKNUMBER
=
"
$(
ssh
$GEARHOST
task
ls
|
head
-n1
|
sed
-e
"s|^#
\(
[0-9]*
\)
.*|
\1
|g"
)
"
||
fatal
# hack "
showcmd
$ETERBUILDBIN
/gita get last task
TASKNUMBER
=
$(
$ETERBUILDBIN
/gita get last task
)
fi
else
NUMSPECS
=
$(
estrlist count
$LISTNAMES
)
...
...
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