THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
# Go to bigtop CI build slave: docker-slave-06, and docker-slave-07 # See which image is built on the host docker images |head # Only push images successfully built by CI to Dockerhub for os in centos-6 centos-7 fedora-25 opensuse-42.1 debian-8 ubuntu-16.04; do docker push bigtop/slaves:1.2.1-$os; done |
Make sure all the built images are downloaded on docker-slave-06 and docker-slave-07
No Format |
---|
for os in centos-6 centos-7 fedora-25 opensuse-42.1 debian-8 ubuntu-16.04; do docker pull bigtop/slaves:1.2.1-$os; done |
5.2. Build RPM/DEB packages
Create a release specific job to build packages:
https://ci.bigtop.apache.org/job/Bigtop-1.2.1/
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 example:
No Format |
---|
# Go to the build slave, docker-slave-06 or docker-slave-07, depends on which built the packages
cp /home/jenkins/workspace/Bigtop-1.2.1/OS/centos-7/output ~/centos-7 |
Startup a docker images that is RPM based system:
No Format |
---|
docker run -ti --rm -v $PWD:/tmp bigtop/puppet:centos-7 bash |
Prepare the environment for signing:
No Format |
---|
gpg --import YOUR_CODE_SIGNING_SECRET_KEY
echo > ~/.rpmmacros <<__EOT__
%_gpg_name 8C10EE0A
__EOT__
yum install -y rpm-sign createrepo |
Sign packages:
No Format |
---|
cd /tmp
# Sign all RPM packages
rpm --addsign `find centos-7 -name \*rpm`
# Recreate the metadata for repository
createrepo centos-7
# Armor the metadata
gpg --detach-sign --armor centos-7/repodata/repomd.xml |
[OPENSUSE ONLY]
No Format |
---|
gpg --armor --export evansye@apache.org > opensuse-42.1/repodata/repomd.xml.key
for i in `find opensuse-42.1/repodata -name *.xml.gz` opensuse-42.1/repodata/repomd.xml.key ; do gpg --detach-sign --armor $i ; done |
5.4. Sign DEB packages and apt repos
Ref:
Jira | ||||||
---|---|---|---|---|---|---|
|
6. Build and Deploy Artifacts
...