summaryrefslogtreecommitdiffstats
path: root/jjb/xci/bifrost-verify-jobs.yml
AgeCommit message (Collapse)AuthorFilesLines
2018-04-12jjb: xci: bifrost-verify-jobs: Disable OPNFV bifrost jobsMarkos Chandras1-3/+3
The jobs are unmaintained and broken for months. Upstream already has jobs for all 3 distributions so there is little value to test a similar scenario on the OPNFV side. As such, lets disable them and save some hardware resources for XCI. Change-Id: I0ab7d51f44bdeb6f630671e8d05dd2baf67d756c Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-03-07jjb: xci: Add postbuild publisher script to remove clean VMMarkos Chandras1-0/+7
The clean VM normally stays around after the job is completed or killed due to timeout. Unless a job for the same distro is scheduled on the same node, that VM will state around for a while consuming valuable system resources. As such, we should remove it after the job finishes to free up resources for the new jobs. Change-Id: I88b5e32797969d9378588199a7ddb013bbe740c9 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-02-21Merge "Rename var XCI_LOOP to CI_LOOP to align with Functest"Fatih Degirmenci1-1/+1
2018-02-21Merge "jjb: xci: Fix bifrost blockers for XCI jobs"Markos Chandras1-0/+7
2018-02-21jjb: xci: Fix bifrost blockers for XCI jobsMarkos Chandras1-0/+7
The bifrost regexp was wrong leading to conflicts betwen the XCI and bifrost jobs. Moreover, we need to add the same restrictions for jobs/node on bifrost jobs similar to the XCI ones. This finally fixes the 'throttle' property to use the 'xci-verify-virtual' category. Change-Id: I6d3f8fdd82738c1d079b1a3fdef134753eb4281a Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-02-19jjb: xci: bifrost-verify-jobs: Increase build-timeout valueMarkos Chandras1-1/+1
The bifrost jobs could run in parallel with the XCI ones so it may take longer than 90 minutes to complete. Lets double the timeout value in order to ensure that we don't fail due to a Jenkins timeout. Change-Id: I53a442f434d839d891bf03e41ba1a6a4459fd878 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-02-14Rename var XCI_LOOP to CI_LOOP to align with FunctestFatih Degirmenci1-1/+1
Change-Id: If5c5b828312dc588515589b8075b9754537b8f86 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2017-12-15xci: Use custom-url for readable CI reportsMarkos Chandras1-0/+1
Change-Id: I97d8fac47ec25414045a7761b651019f9f89224f Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-11-30jjb: xci: bifrost-verify: Simplify bifrost jobMarkos Chandras1-3/+2
We no longer test OPNFV commits that affect bifrost since these are being tested as part of the XCI jobs. As such, simplify the job to only test incoming upstream patchsets. Moreover, we need to block when an XCI job is running since both jobs run on the same hosts and create the same VMs. Change-Id: I5c11ae5b6a4d719ec41a6e663ddf6ecbd71ac1a5 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-10-20jjb: xci: bifrost: Enable jobs and use XCI ssh configurationMarkos Chandras1-4/+4
Enable the 'bifrost' jobs and also make use of the XCI specific ssh configuration file. Change-Id: I04d15610b596191622cf028b3408b4d63ee7090b Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-10-04jjb: xci: Refactor bifrost jobs to use the XCI clean VMMarkos Chandras1-52/+6
We no longer run opnfv/bifrost jobs so drop all the references from the configuration file. Moreover, make use of the releng-xci XCI clean VM virtual machine to run the tests on a clean environment. Finally, we drop the support for uploading logs to the artifacts.opnfv.org. This needs to be done for XCI as well so we will bring it back when we develop a universal solution. Change-Id: I9bad17508ab8ee6594aec444ab864b99331b616d Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-10-03Fix Yamllint violations for jjb/xciTrevor Bramwell1-186/+191
JIRA: RELENG-254 Change-Id: Iaf58cc822eb616711c0dc081f5b0154fe881646c Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2017-09-15xci: Disable bifrost jobs until Intel slaves are back onlineFatih Degirmenci1-3/+3
Change-Id: I3a40077f14429de7a23ebf733dff5b13b8bc5d9e Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-09-12xci: Drop parameter ANSIBLE_VERBOSITY from jobsFatih Degirmenci1-3/+0
Instead of setting the verbosity in jobs, they can be set in scripts to move the setting to where it makes most sense and possibly easing the work for ansible version adaptations by fixing it in one place. Change-Id: Ie155b666cf5300a3f57687b3214a65d5d79aeee1 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-09-01jjb: xci: Update openSUSE release to 42.3Markos Chandras1-1/+1
openSUSE Leap 42.3 is the latest release so update the CI jobs to make use of it. Change-Id: I875bf924be9c84607d4b859a72f5eade4ca5f36d Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-08-17Merge "jjb: xci: bifrost-verify-jobs: Kill the job after 90 minutes"Markos Chandras1-0/+2
2017-08-17jjb: xci: bifrost-verify-jobs: Kill the job after 90 minutesMarkos Chandras1-0/+2
Make use of the build-timeout macro to kill the job after 90 minutes which is more than enough for a bifrost job to finish. Change-Id: Ic7ffa8291d057bf22f7d97d017c00bd3f3b6f4a9 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-08-16jjb: xci: Use centos-minimal instead of centos7 elementMarkos Chandras1-1/+1
The full distro elements are not well maintained. Upstream OpenStack also prefers the minimal elements when building images for the CI so we should do the same to minimize the delta between the two systems. Change-Id: Ifeddb0a74c2434df2cfa95cde36b4aaac1516698 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-08-11Update repository with new location of XCITrevor Bramwell1-4/+4
With the releng-xci code moving to it's own repository, the Jenkins jobs need to be modify to clone the correct repo and point at the right paths: * The git repo is changed to 'releng-xci' * The cloned directory is changed to '$WORKSPACE/releng-xci' * References to the 'prototypes' directory path have been removed Change-Id: Ia1d2ad0a2fb6cc9d1848356edf448b92ab67b017 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2017-08-02Send 'Build Failed' Emails to Jenkins AdminsTrevor Bramwell1-0/+1
Adds the 'email-jenkins-admins-on-build-failures' publishers for jobs which have overridden the default list of publishers. This will provide Jenkins administrators a time-series list of build failures to assist in debugging issues with the master and agents. JIRA: RELENG-257 Change-Id: I28f12877562113c9197ed6429ee2a7f3cdbaf346 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2017-06-05bifrost: Switch Ubuntu targets to Xenial (16.04)Fatih Degirmenci1-2/+2
Switch default target OS to Ubuntu Xenial (16.04) which is also the version supported by bifrost. Change-Id: Ia139af9d03c85225e741c78ce35ecc59cd990108 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-05-11jjb: xci: bifrost: Clone git repositories to $WORKSPACEMarkos Chandras1-2/+2
Commit 0638af211db1 ("jjb: xci: xci-deploy.sh: Run the deployment script as normal user") dropped 'sudo' from the bifrost provisioning script. However this broke the jobs since the repositories were being cloned into /opt where the jenkins user has not access to. As such, clone the repositories in the $WORKSPACE directory instead. Fixes: 0638af211db1 ("jjb: xci: xci-deploy.sh: Run the deployment script as normal user") Change-Id: I55baceaada04496884470997562e3f512f2444a0 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-04-04xci: Introduce XCI_LOOP variable to control what to do properlydanube.1.0Fatih Degirmenci1-0/+3
XCI has different jobs/loops to run - patchset verification jobs (currently bifrost and osa in future) - periodic jobs (bifrost and osa) - daily jobs (for OPNFV platform deployment and testing) The same scripts/playbooks used by XCI will also be used by developers. We need to do different things depending on the context the scripts and playbooks are executed. - periodic jobs will use latest of everything to find working versions of the components. (periodic osa will use unpinned role requirements for example) - daily jobs will use pinned versions in order to bring up the platform and run OPNFV testing against it. (daily deployment will use pinned versions and role requirements for example) - developers might choose to use pinned versions or latest Depending on what loop we are running, we need to do things differently in scripts and playbooks. This variable will help us to do this in easy way. We can of course do pattern matching of the job name but it will not work if the scripts are used outside of Jenkins. The default loop for non-Jenkins execution is set to daily as we want developers to use working versions unless they change it to something else intentionally. Change-Id: Iff69c77ae3d9db2c14de1783ce098da9e9f0c83d Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-04-03xci: Adjust and fix jobs and scriptsFatih Degirmenci1-1/+1
This change - fixes GIT_BASE in jobs - adjusts build blockers - fixes where the flavor vars should be sourced from - sources flavor vars for bifrost periodic jobs - renames the xcimaster node to opnfv to be consistent - removes obsolete xci-provision.sh script - enable additional openstack services including tempest to ensure the deployment is sane Change-Id: Ifdce1da52d68a26c2b87e1bd3b1996ec119d8d90 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-29Make prescm step workspace permission fix a macro available to allFatih Degirmenci1-12/+1
bifrost-verify jobs have been using this without issues and it is needed for many other jobs in order to avoid unnecessary failures. This change makes workspace permission fix prescm step a macro. Change-Id: Ib5678dbf21c17ce640a600d2a06ebed9674663fa Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-24xci: Configure ansible verbosity based on job typeFatih Degirmenci1-0/+3
Daily jobs will use pinned versions of bifrost and openstack-ansible in order to make sure we use known good versions for them since focus of the daily jobs is OPNFV platform testing. Ansible log can easily become massive depending on the level it is set and it is not so relevant for daily jobs to have it like this due to less probability of dailies failing to provision/deploy. On the other hand, the jobs that verify/test bifrost and openstack-ansible will have max verbosity enabled to troubleshoot these components themselves. New set of jobs will be created running periodically against the HEAD of master for bifrost and openstack-ansible to catch working versions and help us promote them to use for daily platform jobs. Verbosity of these jobs will be enabled like how we are doing for bifrost-verify jobs. Change-Id: Ic9fd2ff418fdaa3ad7fbfc22d8ec2dc1174df65f Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-24xci: Merge bifrost provisioning scripts and renameFatih Degirmenci1-10/+22
Jobs are adjusted as well. Change-Id: I0bc5bdda37277053d81d7da394e0156902da817a Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-22jjb: xci: Fix permissions in workspace before removing itMarkos Chandras1-0/+14
From time to time we end up in the unfortunate situation where the jenkins job breaks for random reasons and the logs are left with 'root' permissions. On the next run, the job fails again but this time it's because Jenkins does not have enough permissions to delete them. We workaround this by fixing up the permissions before removing the workspace. Change-Id: I2fda20ded527bac73605ffa5818a2c44bf6c9026 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-03-20xci: Create skeletons for jobs and rename directoryFatih Degirmenci1-0/+223
This patch - creates job skeletongs based on the structure of other OPNFV jobs upstream job per scenario triggering and controlling the downstream jobs downstream jobs to run provisioning, deployment and functest - renames infra directory to xci Change-Id: I9a7ac3590d660f4270ab387598586e4270787ecb Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>