summaryrefslogtreecommitdiffstats
path: root/jjb/infra/bifrost-verify.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-01-28jjb: infra: bifrost-verity: Ignore missing landing pageMarkos Chandras1-1/+1
if this a new build, there is no landing page to remove and 'gsutil rm' will return false breaking the build. Ignore such failures. Change-Id: If5969b06b7a65a8e36abda57e8cb75e8684a716a Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-01-27jjb: infra: bifrost-verify: Add links to Jenkins jobsMarkos Chandras1-8/+16
It's helpful to provide links to the Jenkins jobs in case further analysis of the build is needed. Moreover, move the console upload step at the end to make sure we also capture the output from the 'exit' handler itself. Change-Id: I7efa363cd248c99783b8a3f66d7dd4d7fd898ef2 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-01-24jjb: infra: bifrost-verify.sh: Always create the landing pageMarkos Chandras1-16/+19
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>
2017-01-24jjb: infra: bifrost-verify.sh: Replace 'exit' with 'return'Markos Chandras1-1/+1
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>
2017-01-20jjb: infra: bifrost-verify.sh: Download the build log to $WORKDIRMarkos Chandras1-3/+3
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>
2017-01-20jjb: infra: bifrost-verify.sh: Rework code for uploading the build logMarkos Chandras1-1/+3
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>
2017-01-19jjb: infra: bifrost-upload-logs.sh: Consolidate upload step to main jobMarkos Chandras1-1/+50
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>
2016-11-29jjb: infra: bifrost-verify.sh: Make sure the cache directory existsMarkos Chandras1-0/+3
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>
2016-11-02Fix perms and sed for bridge_nameYolanda Robla Mota1-3/+3
Change-Id: I0b2b6e31a456398958bf1997ed6f6394322191c8 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-11-02Fix automated job to properly create the bridgeYolanda Robla Mota1-0/+7
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>
2016-10-03jjb: infra: Fix ownership for the cache directoryMarkos Chandras1-0/+4
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>
2016-09-27bifrost: Refactor bifrost jobsFatih Degirmenci1-0/+57
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>