syndesisio / syndesis-project

Placeholder repository for project management
https://syndesis.io/
Apache License 2.0
6 stars 12 forks source link

fix jenkins CI cleanup #91

Closed jludvice closed 6 years ago

jludvice commented 7 years ago

CC @dsimansk

We have a ton of useless projects on openshfit

 jludvice@jludvice-potvora  ~/devel/redhat/ipaas/syndesis-e2e-tests   settings ●✚  oc get projects | grep syndesis
syndesis-ci                                                                                                Active
syndesis-datamapper-release-work-1-11-0-fuse-000-1-201706291238                                            Active
syndesis-datamapper-syndesis-rebrand-1-201706291238                                                        Active
syndesis-qe                                                                                                Active
syndesis-rest-master-100-201708290941                                                                      Active
syndesis-rest-master-101-201708291229                                                                      Active
syndesis-rest-master-102-201708291616                                                                      Active
syndesis-rest-master-103-201708301014                                                                      Active
syndesis-rest-master-104-201708301214                                                                      Active
syndesis-rest-master-105-201708311221                                                                      Active
syndesis-rest-master-106-201708311316                                                                      Active
syndesis-rest-master-107-201708311400                                                                      Active
syndesis-rest-master-108-201708311821                                                                      Active
syndesis-rest-master-109-201708311902                                                                      Active
syndesis-rest-master-110-201709010640                                                                      Active
syndesis-rest-master-113-201709010807                                                                      Active
syndesis-rest-master-114-201709010945                                                                      Active
syndesis-rest-master-115-201709011718                                                                      Active
syndesis-rest-master-95-201708251942                                                                       Active
syndesis-rest-master-96-201708251959                                                                       Active
syndesis-rest-master-97-201708281706                                                                       Active
syndesis-rest-master-99-201708290726                                                                       Active
syndesis-rest-pr-493-5-201708301829                                                                        Active
syndesis-rest-pr-533-6-201708251928                                                                        Active
syndesis-rest-pr-535-11-201708252000                                                                       Active
syndesis-rest-pr-535-15-201708281338                                                                       Active
syndesis-rest-pr-535-7-201708251035                                                                        Active
syndesis-rest-pr-539-4-201708251027                                                                        Active
syndesis-rest-pr-542-1-201708251543                                                                        Active
syndesis-rest-pr-544-1-201708281337                                                                        Active
syndesis-rest-pr-544-2-201708281412                                                                        Active
syndesis-rest-pr-546-1-201708291202                                                                        Active
syndesis-rest-pr-547-2-201708291520                                                                        Active
syndesis-rest-pr-547-3-201708291522                                                                        Active
syndesis-rest-pr-547-4-201708291526                                                                        Active
syndesis-rest-pr-548-10-201708312218                                                                       Active
syndesis-rest-pr-548-12-201709011649                                                                       Active
syndesis-rest-pr-548-2-201708300838                                                                        Active
syndesis-rest-pr-548-3-201708300947                                                                        Active
syndesis-rest-pr-548-5-201708311005                                                                        Active
syndesis-rest-pr-550-1-201708300940                                                                        Active
syndesis-rest-pr-551-1-201708301150                                                                        Active
syndesis-rest-pr-553-2-201708310623                                                                        Active
syndesis-rest-pr-554-1-201708310835                                                                        Active
syndesis-rest-pr-554-2-201708310910                                                                        Active
syndesis-rest-pr-554-4-201708311125                                                                        Active
syndesis-rest-pr-555-3-201708311047                                                                        Active
syndesis-rest-pr-556-1-201708311301                                                                        Active
syndesis-rest-pr-558-1-201708311646                                                                        Active
syndesis-rest-pr-563-2-201708312215                                                                        Active
syndesis-rest-pr-568-1-201709010919                                                                        Active
syndesis-rest-testsupport-deployments-4-201708031308                                                       Active
syndesis-staging                                                                                           Active
syndesis-staging-bak                                                                                       Active
rhuss commented 7 years ago

@iocanel aren't this projects supposed to be deleted after a CI run (even when the CI fails ?) ?

Maybe we should add a Job which does this cleanup periodically, based on a name pattern ?

iocanel commented 7 years ago

The syndesis-rest-pr-XX-YY-<DATE> should all be deleted, regardless of the outcome of the build.

jludvice commented 7 years ago

the cleanup still doesn't work @iocanel @rhuss @dsimansk as of today we have

    syndesis-datamapper-release-work-1-11-0-fuse-000-1-201706291238
    syndesis-datamapper-syndesis-rebrand-1-201706291238
    syndesis-rest-master-117-201709051559
    syndesis-rest-master-118-201709071046
    syndesis-rest-master-121-201709080834
    syndesis-rest-master-122-201709081118
    syndesis-rest-master-123-201709081508
    syndesis-rest-master-124-201709081915
    syndesis-rest-master-125-201709111252
    syndesis-rest-master-126-201709121332
    syndesis-rest-master-127-201709121409
    syndesis-rest-master-128-201709121437
    syndesis-rest-master-129-201709131938
    syndesis-rest-master-130-201709141021
    syndesis-rest-master-131-201709141525
    syndesis-rest-master-132-201709141549
    syndesis-rest-master-133-201709151137
    syndesis-rest-master-134-201709151533
    syndesis-rest-master-135-201709151911
    syndesis-rest-master-136-201709181210
    syndesis-rest-master-138-201709181559
    syndesis-rest-pr-493-13-201709071526
    syndesis-rest-pr-572-5-201709051033
    syndesis-rest-pr-572-6-201709051055
    syndesis-rest-pr-572-7-201709051145
    syndesis-rest-pr-573-5-201709051220
    syndesis-rest-pr-574-2-201709051300
    syndesis-rest-pr-574-3-201709071100
    syndesis-rest-pr-577-2-201709051534
    syndesis-rest-pr-577-3-201709051636
    syndesis-rest-pr-577-4-201709071130
    syndesis-rest-pr-580-1-201709071612
    syndesis-rest-pr-581-2-201709080920
    syndesis-rest-pr-582-3-201709081440
    syndesis-rest-pr-584-1-201709081847
    syndesis-rest-pr-585-3-201709101511
    syndesis-rest-pr-587-3-201709111219
    syndesis-rest-pr-588-2-201709121257
    syndesis-rest-pr-590-3-201709121222
    syndesis-rest-pr-591-1-201709121309
    syndesis-rest-pr-592-8-201709131617
    syndesis-rest-pr-593-2-201709140937
    syndesis-rest-pr-595-4-201709141423
    syndesis-rest-pr-598-2-201709141524
    syndesis-rest-pr-607-4-201709151839
    syndesis-rest-pr-608-3-201709150929
    syndesis-rest-pr-612-2-201709151408
    syndesis-rest-pr-612-6-201709151506
    syndesis-rest-pr-614-1-201709152224
    syndesis-rest-pr-614-2-201709152335
    syndesis-rest-pr-615-12-201709181249
    syndesis-rest-pr-615-7-201709181011
    syndesis-rest-pr-615-9-201709181015
    syndesis-rest-pr-617-3-201709181528
    syndesis-rest-testsupport-deployments-4-201708031308
rhuss commented 7 years ago

I think @iocanel just cleaned up a bit.

jludvice commented 7 years ago

@iocanel maybe deleted old projects, but CI still creates new project on PR and doesn't delete at the end. We need to make CI delete project at the end of test run, not delete manually once a week @rhuss. There is 18 syndesis-rest-pr-* projects today.