Commit Graph

424 Commits

Author SHA1 Message Date
Roberto Cirillo 28fa798768 add folder delete 2022-10-04 11:24:18 +02:00
Roberto Cirillo 79abb3f26e small fix 2022-10-04 11:20:07 +02:00
Roberto Cirillo 7f1a2be84e small fix 2022-10-04 11:12:30 +02:00
Roberto Cirillo 350b9ccb8c put remove actions outside the loop 2022-10-04 10:59:41 +02:00
Roberto Cirillo 360a7cf5be fix clean method 2022-10-04 10:48:23 +02:00
Roberto Cirillo 7a361393f1 fix clean method 2022-10-04 10:40:02 +02:00
Roberto Cirillo 3f3e10fa2f fix clean method 2022-10-04 10:23:18 +02:00
Roberto Cirillo 75e36dcd24 fix sintax 2022-10-04 10:15:56 +02:00
Roberto Cirillo 99d8a90706 small change 2022-10-04 10:14:38 +02:00
Roberto Cirillo fa0928823d FIX ISeMPTY CHECK 2022-10-04 10:06:59 +02:00
Roberto Cirillo 51b48579ab fis readCSV method 2022-10-04 09:56:24 +02:00
Roberto Cirillo 5e9c7a1e9f fix findfiles method 2022-10-04 09:46:54 +02:00
Roberto Cirillo 647b4e52ac moving echo print outside the loop 2022-10-03 17:17:38 +02:00
Roberto Cirillo 1245adac9a set deploy-folder with build number 2022-10-03 17:12:19 +02:00
Roberto Cirillo 3b9e5e1826 add loop on deploy folder 2022-10-03 16:38:01 +02:00
Roberto Cirillo f72d3705fb rename var DEPLOY_FILE_ROOT_FOLDER to PENDING_DEPLOY_FOLDER 2022-10-03 10:09:52 +02:00
Roberto Cirillo c9db997000 removed unused methods, clean code 2022-09-30 18:06:24 +02:00
Roberto Cirillo 5debaa7edd add new var CD_ROOT_FOLDER 2022-09-30 17:57:05 +02:00
Roberto Cirillo ed52fdb21e fix sintax 2022-09-30 17:52:42 +02:00
Roberto Cirillo 5c2faa5acd fix sintax 2022-09-30 17:49:06 +02:00
Roberto Cirillo a346ad116a fix sintax 2022-09-30 17:45:53 +02:00
Roberto Cirillo 081b52280e removed component array 2022-09-30 17:42:51 +02:00
Roberto Cirillo 4868c68c96 small fix 2022-09-30 17:30:45 +02:00
Roberto Cirillo b39f166d81 small fix 2022-09-30 17:23:35 +02:00
Roberto Cirillo 6937a900b8 small fix 2022-09-30 17:22:17 +02:00
Roberto Cirillo b30a726d2a small fix 2022-09-30 17:15:45 +02:00
Roberto Cirillo 3cf615d21c small fix 2022-09-30 16:58:14 +02:00
Roberto Cirillo 58fd9640df small fix 2022-09-30 16:56:31 +02:00
Roberto Cirillo ca74aeab83 small fix 2022-09-30 16:43:08 +02:00
Roberto Cirillo 48eacafc67 small fix 2022-09-30 16:37:41 +02:00
Roberto Cirillo 115f6403ba small fix 2022-09-30 16:34:20 +02:00
Roberto Cirillo bc1c7b3191 wrong print 2022-09-30 16:31:48 +02:00
Roberto Cirillo f3133d34f6 wrong print 2022-09-30 16:28:54 +02:00
Roberto Cirillo 9f1ebdbdd2 fill components 2022-09-30 16:27:21 +02:00
Roberto Cirillo 9f8f11018d add print 2022-09-30 15:52:52 +02:00
Roberto Cirillo 8b5d8e9794 add print 2022-09-30 15:49:15 +02:00
Roberto Cirillo 7b0d9123c2 add print 2022-09-30 15:41:49 +02:00
Roberto Cirillo c32ef76a54 readCSV file 2022-09-30 15:35:00 +02:00
Roberto Cirillo ccb34365ca add NonCPS tag to the method 2022-09-30 14:57:58 +02:00
Roberto Cirillo 8842ea81bb changed method version 2022-09-30 09:53:28 +02:00
Roberto Cirillo 3c928cd070 add script function 2022-09-29 17:08:00 +02:00
Roberto Cirillo f48fbfc448 add FilePath import 2022-09-29 15:56:47 +02:00
Roberto Cirillo 3f607a0ac4 replace File with FilePath 2022-09-29 15:53:00 +02:00
Roberto Cirillo 670451a028 find work properly. Going to pass to the original method 2022-09-29 12:51:14 +02:00
Roberto Cirillo 748351d64e fix escape chars on find command 2022-09-29 12:05:09 +02:00
Roberto Cirillo 2ff971b021 fix escape chars on find command 2022-09-29 11:56:26 +02:00
Roberto Cirillo 911b5e837d fix escape chars on find command 2022-09-29 11:51:02 +02:00
Roberto Cirillo 56e53ec4b0 small change 2022-09-29 11:37:32 +02:00
Roberto Cirillo bac26e2f79 fix find command 2022-09-29 11:34:45 +02:00
Roberto Cirillo a4cd1755f9 fix find command 2022-09-28 17:40:31 +02:00
Roberto Cirillo 16bc2ddcb7 fix find command 2022-09-28 17:36:42 +02:00
Roberto Cirillo fcf6854059 use find command 2022-09-28 17:35:10 +02:00
Roberto Cirillo e284591aab fixed mv wildcard 2022-09-28 17:07:45 +02:00
Roberto Cirillo eb1efee889 fixed mv wildcard 2022-09-28 17:07:21 +02:00
Roberto Cirillo 20f82cb657 restored old cron 2022-09-28 17:05:10 +02:00
Roberto Cirillo a55729d32c fix mv 2022-09-28 16:48:33 +02:00
Roberto Cirillo bc8c57ce91 fix mv 2022-09-28 16:20:38 +02:00
Roberto Cirillo a21064c4e2 fix mv 2022-09-28 16:00:22 +02:00
Roberto Cirillo 95b03417bc fix mv 2022-09-28 15:59:30 +02:00
Roberto Cirillo 527822a1f2 fix mv 2022-09-28 15:59:19 +02:00
Roberto Cirillo c70558a11f fix mv 2022-09-28 15:28:47 +02:00
Roberto Cirillo c6d0b9d646 moving the whole folder under workspace 2022-09-28 14:46:13 +02:00
Roberto Cirillo 863fd1c4ec fixed mv command 2022-09-28 14:35:08 +02:00
Roberto Cirillo 9fa9903bf4 change WORKSPACE var sintax 2022-09-28 12:48:41 +02:00
Roberto Cirillo 6040738a12 change WORKSPACE var sintax 2022-09-28 12:40:36 +02:00
Roberto Cirillo 5f7f5d16e9 set cron every 15' 2022-09-28 11:39:53 +02:00
Roberto Cirillo 87cc55ddf8 try to move the content of CD folder inside the ws 2022-09-28 11:36:18 +02:00
Roberto Cirillo fe0f9534aa restored old cron 2022-09-17 12:25:35 +02:00
Roberto Cirillo 578d0d1e84 small test 2022-09-16 16:43:39 +02:00
Roberto Cirillo 8ed1b5b4eb small change 2022-09-16 16:28:44 +02:00
Roberto Cirillo 9dcb9773ca small change 2022-09-16 15:45:32 +02:00
Roberto Cirillo b049457401 small change 2022-09-16 15:32:35 +02:00
Roberto Cirillo a39271efa3 small change 2022-09-16 15:22:52 +02:00
Roberto Cirillo 0c0cb5bda5 small change 2022-09-16 15:10:09 +02:00
Roberto Cirillo f3827aa956 fix method 2022-09-16 14:48:07 +02:00
Roberto Cirillo 90ff91f07e method fixed. switch to previous getComponentsFromCSVDir method version 2022-09-16 14:16:12 +02:00
Roberto Cirillo 816f919a3a remove print for every file in folder 2022-09-16 14:03:06 +02:00
Roberto Cirillo dc9ed3e958 update cron every 30' 2022-09-16 14:01:10 +02:00
Roberto Cirillo 9f7b104220 add @NonCPS to method 2022-09-16 11:36:11 +02:00
Roberto Cirillo 8094698bd1 working on folder method 2022-09-16 10:37:54 +02:00
Roberto Cirillo e4a683cbd6 set cron every 15' 2022-09-16 10:07:20 +02:00
Roberto Cirillo c2c8d56688 working on getComponentsFromCSVDir method 2022-09-16 10:06:53 +02:00
Roberto Cirillo 78a62bc9e3 restored old cron 2022-09-09 17:02:27 +02:00
Roberto Cirillo 815f302d89 add / to the folder path 2022-09-09 14:46:50 +02:00
Roberto Cirillo eec8436621 new test method for parsing the file 2022-09-09 14:35:25 +02:00
Roberto Cirillo 6ea001f0f6 add import FileType.FILES 2022-09-09 12:35:22 +02:00
Roberto Cirillo 0ba5b543fa small change: add new log 2022-09-09 11:49:36 +02:00
Roberto Cirillo 51746ad51a fix println sintax; restored cron every 15' 2022-09-09 11:24:19 +02:00
Roberto Cirillo 3ab0b4bf24 restored old cron 2022-09-08 17:32:18 +02:00
Roberto Cirillo 478a55e741 set cron every 15' 2022-09-08 14:56:14 +02:00
Roberto Cirillo c87343479e add empty folder check 2022-09-08 14:40:49 +02:00
Roberto Cirillo fda6187b4c restored checkup and deploy methods in the same catch 2022-09-08 12:22:39 +02:00
Roberto Cirillo e075a3d92b set agent label to ansible 2022-09-08 12:07:26 +02:00
Roberto Cirillo cc890e4b8b set build to SUCCESS and stage to FAILURE if the version doesn't contain
SNAPSHOT, in deploy from upstream case; remove SNAPSHOT check on deploy
manually stage
2022-09-08 10:28:09 +02:00
Roberto Cirillo 9ac38b137e change var IS_CRON to IS_CRON_TMP temporarily 2022-08-30 15:03:35 +02:00
Roberto Cirillo 58660da462 change cronjob 2022-08-29 09:52:04 +02:00
Roberto Cirillo 15b19c4cd3 remove file deletion 2022-08-04 17:50:01 +02:00
Roberto Cirillo 6f27e27274 remove file.getAbsolutePath method 2022-08-04 17:22:09 +02:00
Roberto Cirillo dfc6899bd6 add some logs 2022-08-04 17:11:18 +02:00
Roberto Cirillo ccae2577cb add some logs 2022-08-04 17:02:22 +02:00
Roberto Cirillo 63cf98a6f0 change var name components 2022-08-04 16:31:43 +02:00
Roberto Cirillo f3efd14a02 set cron every 15, just for test 2022-08-04 16:30:10 +02:00
Roberto Cirillo f0383b7fa6 processing deploy files: convert list to set 2022-08-04 16:18:28 +02:00
Roberto Cirillo 879193b653 fix DEPLOY_FILE_ROOT_FOLDER variable 2022-08-04 15:54:27 +02:00
Roberto Cirillo 10c932cc83 removed param deploy list management 2022-08-04 15:47:16 +02:00
Roberto Cirillo 146dd63cb6 fix deploy filename 2022-08-04 15:44:33 +02:00
Roberto Cirillo 73adf8b656 add userid cause to pending job 2022-08-04 15:23:39 +02:00
Roberto Cirillo d7f99a58fc create separated folder for deploy files 2022-08-04 15:19:39 +02:00
Roberto Cirillo fbd860296d change agent label from CD to ansible 2022-08-04 13:00:41 +02:00
Roberto Cirillo 0759dccca5 fix sintax 2022-08-04 10:25:49 +02:00
Roberto Cirillo 3e41dac45c add build number to every deploy file. Delete the file after processing it 2022-08-04 10:13:03 +02:00
Roberto Cirillo 2485ec13c8 add method for extracting components from a cdv folder 2022-08-03 17:32:20 +02:00
Roberto Cirillo f6b9b58930 change var name used as input param 2022-07-29 16:46:49 +02:00
Roberto Cirillo c1e0f30e3e update cron 2022-07-18 10:10:04 +02:00
Roberto Cirillo a9453e0707 merge conflicts 2022-07-18 10:08:09 +02:00
Roberto Cirillo 214dfc7c52 small comment 2022-07-18 10:04:42 +02:00
Roberto Cirillo b447e3025f fix method name 2022-05-11 12:03:07 +02:00
Roberto Cirillo 041850e099 small changes 2022-05-11 10:14:01 +02:00
Roberto Cirillo a19122069e changing stage names and add some comments 2022-05-11 10:02:40 +02:00
Roberto Cirillo 2d430bd8cd change cron setting 2022-05-11 09:16:10 +02:00
Roberto Cirillo 56fb8bd136 set to UNSTABLE when a job is added to pending list 2022-05-10 16:01:16 +02:00
Roberto Cirillo ec4bbb7856 catch error set to UNSTABLE for system stage 2022-05-10 15:54:13 +02:00
Roberto Cirillo da899baafd fix trigger_host param 2022-05-10 15:34:47 +02:00
Roberto Cirillo 0b83e9128e set cron every 15' 2022-05-10 15:28:57 +02:00
Roberto Cirillo 5fca2943ed rename function 2022-05-10 15:28:02 +02:00
Roberto Cirillo b7853644e0 fix print 2022-05-10 15:22:56 +02:00
Roberto Cirillo 213ffe70ad fix works. Add println 2022-05-10 15:16:48 +02:00
Roberto Cirillo 977c022cc0 fix check version 2022-05-10 15:12:07 +02:00
Roberto Cirillo 26043f361b check exit code on checkup function 2022-05-10 14:55:18 +02:00
Roberto Cirillo 4639d922e1 fix version check 2022-05-10 14:43:15 +02:00
Roberto Cirillo 03c5fd3349 fix check on version 2022-05-10 14:33:39 +02:00
Roberto Cirillo 9101fdf173 add check on component version into cleanup function 2022-05-10 14:24:02 +02:00
Roberto Cirillo 10ec47cbe5 add check on snapshot; add host field in pending job stage 2022-05-10 14:16:54 +02:00
Roberto Cirillo 28f63c3eb9 add LICENSE; fix deploy exitcode 2022-05-10 11:57:09 +02:00
Roberto Cirillo 783b3f9b9a fix deploy_root_folder variable 2022-05-10 11:36:13 +02:00
Roberto Cirillo 8562a9d48e fix when sintax 2022-05-10 11:32:10 +02:00
Roberto Cirillo 03453efc5c fix when clause 2022-05-10 11:22:29 +02:00
Roberto Cirillo c326e72b20 fix when condition 2022-05-10 11:04:55 +02:00
Roberto Cirillo 6ca6c5ad89 add TRIGGER_CD boolean parameter. 2022-05-10 10:50:15 +02:00
Roberto Cirillo c116e1265d fix sintax 2022-05-09 17:20:42 +02:00
Roberto Cirillo 3550005598 restored CD agent for testing 2022-05-09 17:03:28 +02:00
Roberto Cirillo db1c8ec581 fix sintax 2022-05-09 16:55:40 +02:00
Roberto Cirillo 4f5699caf6 add println and comments 2022-05-09 16:49:22 +02:00
Roberto Cirillo 5cccfc8e3a fix sintax 2022-05-09 16:36:44 +02:00
Roberto Cirillo 92833db6e4 fix sintax 2022-05-09 16:29:43 +02:00
Roberto Cirillo ec2f653223 add status code return 2022-05-09 16:06:17 +02:00
Roberto Cirillo 5ced6872da fix sintax 2022-05-09 15:42:54 +02:00
Roberto Cirillo 97ff85b943 fix ansicolor plugin declaration 2022-05-09 13:01:55 +02:00
Roberto Cirillo d866f93a8a test ansicolor plugin directly on pipeline 2022-05-09 12:56:25 +02:00
Roberto Cirillo b7785e72f1 change agent label to deploy 2022-05-09 12:39:33 +02:00
Roberto Cirillo 9f33b6385e restored agent label CD 2022-05-06 16:40:56 +02:00
Roberto Cirillo 1bd81d38eb change agent label to CI ( just a test) 2022-05-06 16:35:48 +02:00
Roberto Cirillo 4ae533206f fix deploy command 2022-05-06 16:22:10 +02:00
Roberto Cirillo 5395ea418b add git pull command 2022-05-06 15:59:59 +02:00
Roberto Cirillo 9326d444cf fix sintax 2022-05-02 14:37:32 +02:00
Roberto Cirillo 953e0a38a0 fix sintax 2022-05-02 14:33:54 +02:00
Roberto Cirillo 77de7aef8b fix sintax 2022-05-02 14:29:54 +02:00
Roberto Cirillo 6c6ea2f5c2 add function for service deploy 2022-05-02 13:02:50 +02:00
Roberto Cirillo ce05084684 Merge branch 'master' of https://code-repo.d4science.org/gCubeCI/gCubeDeployer 2022-04-29 16:16:22 +02:00
Roberto Cirillo 8140852ef4 fix cleanup step 2022-04-29 15:24:12 +02:00
Roberto Cirillo 032d76252e fix sintax 2022-04-29 13:09:03 +02:00
Roberto Cirillo 3144bb97bf fix println 2022-04-29 12:39:02 +02:00
Roberto Cirillo bcfccd2d37 small change 2022-04-29 12:28:01 +02:00
Roberto Cirillo 23caf0e0ce clean codefix case with 0 components. set cron every 15' 2022-04-29 11:55:02 +02:00
Roberto Cirillo 12c11d6047 check on deploy file added 2022-04-28 18:06:37 +02:00
Roberto Cirillo 223b9ea7d6 update cron settings 2022-04-28 18:02:35 +02:00
Roberto Cirillo 855d2b7228 remove file creation from intialize environment 2022-04-28 17:53:58 +02:00
Roberto Cirillo 3f9de719d0 add dynamic deploy stages to system stage 2022-04-28 16:44:59 +02:00
Roberto Cirillo 9e8b0c094b fix BACKUP_FILE var 2022-04-28 16:36:46 +02:00
Roberto Cirillo 19e221e7d2 removed failed exit code 2022-04-28 16:02:00 +02:00
Roberto Cirillo 1d6274925a fail case on job tested 2022-04-28 16:01:32 +02:00
Roberto Cirillo 34b5562dd4 test fail case 2022-04-28 15:59:40 +02:00
Roberto Cirillo 9b7c8d09d2 testing failure case 2022-04-28 15:57:40 +02:00
Roberto Cirillo 7c354571ce testing failure case 2022-04-28 15:49:16 +02:00
Roberto Cirillo 33a2432636 testing failure case 2022-04-28 15:35:14 +02:00
Roberto Cirillo 3048d0aa85 small comment 2022-04-28 15:31:21 +02:00
Roberto Cirillo c0164b40f0 remove multiple steps from stage 2022-04-28 15:22:49 +02:00
Roberto Cirillo d638ec5d4f add catcherror test step 2022-04-28 15:17:22 +02:00
Roberto Cirillo c6bbc0e18c initialize backup file 2022-04-28 15:10:58 +02:00
Roberto Cirillo f5b55a9c40 fix cleanup section 2022-04-28 14:50:42 +02:00
Roberto Cirillo f6cd5335ca fix cleanup section 2022-04-28 14:37:06 +02:00
Roberto Cirillo 86ef2f57e5 fix cleanup section 2022-04-28 14:36:35 +02:00
Roberto Cirillo a2649dc430 restored cron every fifteen minutes 2022-04-28 14:05:24 +02:00
Roberto Cirillo 9eb103ddd0 fix cleanup section 2022-04-28 14:04:24 +02:00
Roberto Cirillo ea8ba55ee2 manage comments on deploy file parsing 2022-04-28 10:33:47 +02:00
Roberto Cirillo 00f1e7b869 add cleanup deploy file 2022-04-28 10:27:36 +02:00
Roberto Cirillo d1bcc91df4 add delete file after the (simulate) deploy of all components 2022-04-27 16:24:12 +02:00
Roberto Cirillo dfec47ad91 fix if condition 2022-04-27 16:12:18 +02:00
Roberto Cirillo 453c175417 escaping grep command 2022-04-27 16:09:45 +02:00
Roberto Cirillo 428f35fe48 fix else on pending stage 2022-04-27 16:01:09 +02:00
Roberto Cirillo d17a3c7995 fix if condition on pending stage 2022-04-27 15:57:39 +02:00
Roberto Cirillo fd6fbff1f8 add check on pending deploy components stage 2022-04-27 15:36:31 +02:00
Roberto Cirillo fbb8c9941c set cron every two hours 2022-04-27 15:16:29 +02:00
Roberto Cirillo 9d5198c153 fixed parse csv function 2022-04-27 15:02:42 +02:00
Roberto Cirillo 49b7269935 fix parseCSV function 2022-04-27 12:44:51 +02:00
Roberto Cirillo e7677ab8b2 changing parsing method 2022-04-27 12:35:18 +02:00
Roberto Cirillo 5ee7960520 fix readCSV method 2022-04-27 12:19:15 +02:00
Roberto Cirillo cd0e17b759 fix readCSV method 2022-04-27 11:51:29 +02:00
Roberto Cirillo 1d59881e90 testing readCSV function 2022-04-27 11:44:39 +02:00
Roberto Cirillo a2b951471c set cron every 15 days 2022-04-27 09:19:48 +02:00