You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Konstantin Boudnik (JIRA)" <ji...@apache.org> on 2017/04/07 22:11:41 UTC

[jira] [Commented] (BIGTOP-2736) Automate last mile of release process

    [ https://issues.apache.org/jira/browse/BIGTOP-2736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961502#comment-15961502 ] 

Konstantin Boudnik commented on BIGTOP-2736:
--------------------------------------------

There's another ticket of the similar nature - I will try to find it in a bit and link here.

> Automate last mile of release process
> -------------------------------------
>
>                 Key: BIGTOP-2736
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-2736
>             Project: Bigtop
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 1.2.0
>            Reporter: Roman Shaposhnik
>            Assignee: Roman Shaposhnik
>             Fix For: 1.3.0
>
>
> As an RM for 1.2.0 I did a lot of it via automation (relevant tasks in release.gradle) but there also were quite a few things I had to do by hand. I'll dump my notes here and hopefully we can put those in automation for the next release:
> # I had to sign RPM packages by:
> {noformat}
> $ echo > ~/.rpmmacros <<__EOT__
> %_signature gpg
> %_gpg_path /ws/gnupg
> %_gpg_name 9475BD5D
> %_gpgbin /usr/bin/gpg
> __EOT__
> $ rpm --addsign `find . -name \*rpm`
> {noformat}
> # I had to sign the YUM and Zypper repos by (the last two steps were Zypper specific):
> {noformat}
> $ for i in ./*/*/*/repodata/repomd.xml ; do  gpg --homedir /ws/gnupg --detach-sign --armor $i ; done
> $ gpg --homedir /ws/gnupg  --armor --export rvs@apache.org > opensuse/42.1/x86_64/repodata/repomd.xml.key
> $ for i in *.xml.gz repomd.xml.key ; do  gpg --homedir /ws/gnupg --detach-sign --armor $i ; done
> {noformat}
> # I had to sign APT repo by essentially rebuilding it from scratch with:
> {noformat}
> $ cat > apt/conf/distributions <<__EOT__
> Origin: Bigtop
> Label: Bigtop
> Suite: stable
> Codename: bigtop
> Version: 1.2.0
> Architectures: amd64 source
> Components: contrib
> Description: Apache Bigtop
> SignWith: 9475BD5D
> __EOT__
> $ cat > apt/conf/options <<__EOT__
> verbose
> ask-passphrase
> __EOT__
> {noformat}
> Also it helps to do this with GPG agent sine all these tools are super chatty and will keep asking you for the master password to your key:
> {noformat}
> echo 'use-agent' >> ~/.gnupg/gpg.conf
> echo 'pinentry-program /usr/bin/pinentry-curses' > ~/.gnupg/gpg-agent.conf
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)