Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
0b2498f3
Commit
0b2498f3
authored
Dec 09, 2016
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Заложил возможность делать сборки с автоинкрементом релиза (для Jenkins и т.п.),
отключил сборку src.rpm.
parent
a083fa58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
release_helper.sh
conf/release_helper.sh
+27
-2
No files found.
conf/release_helper.sh
View file @
0b2498f3
...
@@ -62,13 +62,38 @@ function cp2ftp()
...
@@ -62,13 +62,38 @@ function cp2ftp()
# ------------------------------------------------------------------------
# ------------------------------------------------------------------------
add_changelog_helper
"- new build"
$SPECNAME
# Увеличиваем подрелиз (.x+1) до сборки!
if
[
-n
"
$BUILD_AUTOINCREMENT_SUBRELEASE
"
]
;
then
inc_subrelease
$SPECNAME
COMMIT
=
"
$(
git rev-parse
--verify
HEAD
)
"
add_changelog
-e
"- (autobuild): commit
$COMMIT
"
$SPECNAME
elif
[
-n
"
$JENKINS_BUILD_AUTOINCREMENT
"
]
;
then
rel
=
"
$(
get_release
$SPECNAME
)
"
# Смотрим номер сборки в JENKINS
if
[
-n
"
$BUILD_NUMBER
"
]
;
then
rel
=
"
${
rel
}
.
${
BUILD_NUMBER
}
"
set_release
$SPECNAME
$rel
else
# просто увеличиваем subrelease
inc_subrelease
$SPECNAME
fi
COMMIT
=
"
$(
git rev-parse
--verify
HEAD
)
"
add_changelog
-e
"- (jenkinsbuild): commit
$COMMIT
"
$SPECNAME
else
# обычный build
add_changelog_helper
"- new build"
$SPECNAME
fi
rpmbb
${
UNISET_BUILD_ADDON_OPTIONS
}
$SPECNAME
||
fatal
"Can't build"
rpmbb
${
UNISET_BUILD_ADDON_OPTIONS
}
$SPECNAME
||
fatal
"Can't build"
cp2ftp
cp2ftp
rpmbs
$SPECNAME
#
rpmbs $SPECNAME
#send_notify
#send_notify
# Увеличиваем релиз и запоминаем спек после успешной сборки
# Увеличиваем релиз и запоминаем спек после успешной сборки
...
...
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