THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
# for all OS and arch supported in Bigtop for i in centos-7 fedora-26 opensuse-42.3 debian-9 ubuntu-16.04; do \ for j in amd64-slave aarch64-slave ppc64le-slave; do \ wget https://ci.bigtop.apache.org/view/Releases/job/Bigtop-1.4.0/DISTRO=centos-7${i},PLATFORM=amd64-slave/lastSuccessfulBuild/artifact/*zip*/archive.zip done done |
5.3. Sign RPM packages and yum repos
Ref:
Jira | ||||||
---|---|---|---|---|---|---|
|
Clone RPMs built by CI job into a temp dir. You can find built packges under jenkins job's workspace. For exampleStartup a docker images that is RPM based system:
No Format |
---|
cd ~/ # GoChange to the buildimage slave, docker-slave-06for AARCH64 or PPC64LE docker-slave-07, dependsrun on which built the packages VERSION=-ti --rm -v $PWD:/tmp bigtop/puppet:1.4.0 SLAVE=amd64-slave # or aarch64-slave, or ... for i in centos-7 fedora-26 opensuse-42.3 debian-9 ubuntu-16.04; do cp -r /home/jenkins/workspace/Bigtop-${VERSION}/DISTRO/$i/PLATFORM/${SLAVE}/output ~/$i; done-centos-7 bash |
Prepare the environment for signing:
No Format |
---|
gpg --import YOUR_CODE_SIGNING_SECRET_KEY
echo "%_gpg_name YOUR_CODE_SIGNING_KEY_ID" > ~/.rpmmacros
yum install -y rpm-sign createrepo |
SigningStartup a docker images that is RPM based system:
No Format |
---|
cd ~/tmp OS=centos-7 # ChangeSign theall imageRPM forpackages AARCH64(This orstep PPC64LE dockerrequired runto -ti --rm -v $PWD:/tmp bigtop/puppet:1.4.0-centos-7 bash |
Prepare the environment for signing:
No Format |
---|
gpg --import YOUR_CODE_SIGNING_SECRET_KEY
echo "%_gpg_name YOUR_CODE_SIGNING_KEY_ID" > ~/.rpmmacros
yum install -y rpm-sign createrepo |
Signing:
No Format |
---|
cd /tmp OS=centos-7 # Sign all RPM packages (This step required to input passphrase, so don't copy and paste the entire script here) rpm --addsign `find $input passphrase, so don't copy and paste the entire script here) rpm --addsign `find ${OS} -name \*rpm` # Recreate the metadata for repository createrepo ${OS} # Armor the metadata gpg --detach-sign --armor ${OS}/repodata/repomd.xml |
...
Ref:
Jira | ||||||
---|---|---|---|---|---|---|
|
Clone DEBs built by CI job into a temp dir. You can find built packges under jenkins job's workspace. For example:
...
Startup a docker images that is DEB based system:
...