11 Commits

Author SHA1 Message Date
Kevin Fenzi
39fa9d623a fix typo in skip-phase
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2018-07-09 08:52:05 -07:00
Peter Robinson
ea5a89ad5b Move output from nightly container/cloud compose to dedicated directory, cleanup older than 14 days
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2018-05-25 12:35:12 +01:00
Adam Williamson
cbafd26bf7 scripts: TARGET_DIR should not have trailing slash
The TARGET_DIR values in just these few nightly scripts have
trailing slashes. They shouldn't, it'll lead to double slashes
in all the places that use TARGET_DIR as they expect it not to
have one.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-01-26 14:27:10 +01:00
Adam Williamson
f3b02d7540 nightly scripts: Use $DESTDIR more
We set $DESTDIR in all these scripts, but then use its value
several times without just...using it. Let's use it!

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-01-25 14:49:27 +01:00
Adam Williamson
ff232bac77 Emit 'location' key in fedmsgs, pointing to compose URL
For fedmsg_meta we have to provide a 'link'. At present we do
this with a rather large and icky pile of conditionals which
doesn't work properly. It's much simpler to figure out the URL
in the compose script and emit it in the fedmsg, then meta can
just...use it. For older fedmsgs we'll just point to the base
kojipkgs location for the link.

For synced composes, we use the synced URL on dl (this matches
what the meta stuff tried to do before). For non-synced composes
we just use the kojipkgs location.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-01-25 14:29:36 +01:00
Adam Williamson
585deac61c Add 'short' key to post-release compose fedmsgs
The various post-release composes - two-week Atomic, Cloud, and
Docker - all send out identical fedmsgs. The other commits in
this PR at least ensure the fedmsgs sent after the compose is
done will have a `compose_id` key, allowing disambiguation that
way, but fedmsgs sent *before* the compose is done cannot be
told apart.

This should solve that, without inventing new message topics:
we add a `short` key to the message content which specifies the
'shortname' of the compose (e.g. Fedora-Atomic), which is how
we distinguish these composes from each other.

We also remove a bunch of unused variables from these files,
and revise the release-related variables as explained for the
master branch in #485: `$DIST`, `$BRANCH` and `$BRANCHED` are
all replaced by `$RELEASE` and `$RELEASE_TITLE`.

This does duplicate the value from the pungi config file, but
I'm not sure it's worth figuring out a bash-y way to parse the
value out of the config file just to remove this duplication.
And we already effectively did this when discovering
`OLDCOMPOSE_ID` and `NEWCOMPOSE_ID`, as the path used there is
dependent upon the shortname; to avoid extra duplication, I've
changed those to use `$SHORT-$RELEASE_TITLE`.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2017-12-04 18:03:43 -08:00
Adam Williamson
704d4371c7 cloud, docker: don't send rsync.start fedmsgs
We don't actually rsync anything for these composes, so it is
wrong to send out a fedmsg saying that we're about to rsync
something.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2017-12-04 15:52:42 -08:00
Adam Williamson
732aee957d atomic, cloud, docker: correct fedmsgs and bail on fail
These changes bring the post-release compose scripts into line
with the pre-release ones in a couple of ways. Firstly, they
should now include the compose ID in fedmsgs sent after the
compose completes. Secondly, they will skip all post-compose
tasks (rsyncing and sending 'compose.complete' fedmsgs, and
sending out mail reports although that's commented out anyway)
when the compose fails. As part of this, we correct the
NEWCOMPOSE_ID discovery for these composes.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2017-12-04 15:52:37 -08:00
Dusty Mabe
b58781da42
fixup cloud config (26->27) and script
Signed-off-by: Dusty Mabe <dusty@dustymabe.com>
2017-10-27 11:46:27 -04:00
Lubomír Sedlář
20f723c1b9 Fix pungi call with extra argument
The script gets a label as a command line argument, and this is manually
handled by adding it as `--label=$1` to the pungi-koji command. We
should not add this argument to another time.

This avoid problem with Pungi 4.1.17 which reports an error when seeing
unknown arguments (which were silently ignored before).

Fixes: https://pagure.io/pungi/issue/682
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2017-07-24 14:44:12 +02:00
Mohan Boddu
fd9eb1219d Adding cloud, atomic and docker composes
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2017-02-24 13:28:32 -05:00