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
a9d7a34a
Commit
a9d7a34a
authored
Dec 06, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitask: add get subtask command, use it in rpmbs
parent
93bba62c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
gitask
bin/gitask
+14
-0
rpmbs
bin/rpmbs
+4
-4
No files found.
bin/gitask
View file @
a9d7a34a
...
...
@@ -20,6 +20,20 @@ fi
# TODO: acl
if
[
"
$1
"
=
"get"
]
;
then
if
[
"
$1
$2
"
=
"get subtask"
]
;
then
[
-n
"
$3
"
]
||
fatal
"get subtask TASK PROJECTNMAE"
# get subtask number from TASKNUMBER for PROJECTNAME
SUBTASK
=
"
$(
GIT_ALT
=
$GEARHOST
girar-show
$3
@ |
grep
"/
$4
.git"
|
sed
-e
"s|.*#
\(
[0-9]*
\)
.*|
\1
|g"
)
"
||
fatal
#"
echo
"
$SUBTASK
"
exit
else
fatal
"Unknown command
$1
$2
"
fi
fi
if
[
"
$1
"
=
"find"
]
;
then
shift
#showcmd "$GEARHOST>" find-packages "$@"
...
...
bin/rpmbs
View file @
a9d7a34a
...
...
@@ -311,11 +311,11 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
echo
"Run build
$PROJECTNAME
at
$GEARHOST
"
# FIXME: tee hangup during first call with ssh ControlMaster
if
[
-n
"
$PREPARETASK
"
]
;
then
showcmd
"GIT_ALT=
$GEARHOST
girar-show
$TASKNUMBER
@"
SUBTASK
=
"
$(
GIT_ALT
=
$GEARHOST
girar-show
$TASKNUMBER
@ |
grep
"/
$PROJECTNAME
.git"
|
sed
-e
"s|.*#
\(
[0-9]*
\)
.*|
\1
|g"
)
"
# hack "
# TODO: can we use showcmd?
showcmd
$ETERBUILDBIN
/gita get subtask
$TASKNUMBER
$PROJECTNAME
SUBTASK
=
$(
$ETERBUILDBIN
/gita get subtask
$TASKNUMBER
$PROJECTNAME
)
if
[
-n
"
$SUBTASK
"
]
&&
!
echo
"
$TASKNUMBER
"
|
grep
-q
" "
;
then
info
"
$PROJECTNAME
already
in task
as subtask
$SUBTASK
, replacing"
info
"
$PROJECTNAME
already
present in the task
$TASKNUMBER
as subtask
$SUBTASK
, replacing"
docmd ssh
$GEARHOST
task delsub
$TASKNUMBER
$SUBTASK
TASKNUMBER
=
"
$TASKNUMBER
$SUBTASK
"
fi
...
...
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