Age | Commit message (Collapse) | Author | Files | Lines |
|
Previously, the function would have returned if no bifrost logs were
present. However, this prevented the landing page from being generated
and uploaded since that happens at the very end of that function.
We rewored the code to always create a landing page even if there
are no bifrost logs to upload.
Change-Id: Ice557d0a42324a135d7f0e5ec94ec22811cc0ae7
Signed-off-by: Markos Chandras <mchandras@suse.de>
|
|
When there are no bifrost logs (possibly because the build broke
far too early) we shouldn't exit at all. This is a valid scenario so
we should return back to the caller and exit using the bifrost
'exit code' instead.
Change-Id: I55a847dea7a6f4209b0e4fb71fad6bb00f6df08b
Signed-off-by: Markos Chandras <mchandras@suse.de>
|
|
We need to store the build log into a location where we have write
access. We will use the $WORKDIR for that. Fixes the following problem.
/tmp/hudson5015921933634723839.sh: line 23: build_log.txt: Permission denied
Change-Id: Ib8f00853a84a42bcc90155e4ca11bb89d921a867
Signed-off-by: Markos Chandras <mchandras@suse.de>
|
|
gsutil does not support compression on streaming uploads so rework the
code to save the log into a temporary file first. Fixes the following
error:
CommandException: gzip compression is not currently supported on
streaming uploads. Remove the compression flag or save the streamed
output temporarily to a file before uploading.
Change-Id: I3976bf3271be3aff8bc7b656ac49de6986ca6c36
Signed-off-by: Markos Chandras <mchandras@suse.de>
|
|
In case of job failures, the upload builder is not executed so the
published links are dead. We move the upload step to the EXIT handler
which is always executed despite the main job exit code.
Moreover, The gsutil tool can compress the files itself but in such
a way that the web browser can still display the contents without
the need for the user to download and uncompress the file himself.
This makes debugging more convenient. We also make the whole upload
process somewhat less noisy. Finally, we include the
$GERRIT_PATCHSET_NUMBER in the title and hyperlink since we provide
and retain build results for each patchset instead of a single set
just for the latest one.
Change-Id: I43efd519a5743661d1f258aa338fb0769f59b6ed
Suggested-by: Julien Zhang <zhang.jun3g@zte.com.cn> # compression only
Signed-off-by: Markos Chandras <mchandras@suse.de>
|
|
Fixes the following problem on new slaves:
chown: cannot access '/home/jenkins/.cache': No such file or directory
Change-Id: Ia461acd44466819e47a459e23ee6fd47ac1bad69
Signed-off-by: Markos Chandras <mchandras@suse.de>
|
|
Change-Id: I0b2b6e31a456398958bf1997ed6f6394322191c8
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
|
|
The element that creates the bridge was moved from file
to template. But in the case of VMs we are not running puppet
to install bifrost, so that is not applied. Manually place the
file in the right path, and replace the bridge name with the
expected br_opnfv.
Change-Id: I22b2213b529343b24c358b3c80fd1849ec40979c
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
|
|
Fixes the following error when the ${HOME}/.cache permissions are bad:
The directory '/home/jenkins/.cache/pip/http' or its parent directory is
not owned by the current user and the cache has been disabled. Please
check the permissions and owner of that directory. If executing pip with
sudo, you may want sudo's -H flag.
Change-Id: I16310817e1f36bd8086e196ef61ec10c09ad7366
Signed-off-by: Markos Chandras <mchandras@suse.de>
|
|
This change
- Creates job templates to verify opnfv/bifrost patches
- Introduces type in order to prepare verification on baremetal
- Fixes git cloning so the job shows changes for the corresponding project
- Gets rid of unnecessary slave parameters from slave-params.yml
- Fixes build blocking
- Updates the bifrost-verify.sh script and includes in shell so we don't have
to clone releng repo separately
- Updates destroy-env.sh to create /httpboot and /tftpboot with permissions 755
- Removes daily infra-bifrost job and scripts as we don't use them at the moment
Change-Id: Icb5a543628d3321bfe4e549ab92c67443ac578d8
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
|