Commit Graph

380 Commits

Author SHA1 Message Date
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
Roberto Cirillo 45c63abf0f clean code 2022-04-26 18:10:23 +02:00
Roberto Cirillo cd4b7056cc fixing parsing function 2022-04-26 18:09:59 +02:00
Roberto Cirillo 840d5ddd48 fixing parsing function 2022-04-26 18:05:41 +02:00
Roberto Cirillo 23e0516369 fixing parsing function 2022-04-26 17:39:55 +02:00
Roberto Cirillo 4f6ab3dfcd fixing parsing function 2022-04-26 17:23:18 +02:00
Roberto Cirillo 132ce1b3db fixing parsing function 2022-04-26 17:22:38 +02:00
Roberto Cirillo f81c597ee0 fixing parsing function 2022-04-26 17:06:50 +02:00
Roberto Cirillo 408ae11f44 fixing parsing function 2022-04-26 17:05:30 +02:00
Roberto Cirillo 96c3e00187 fixing parsing function 2022-04-26 16:55:26 +02:00
Roberto Cirillo b7d8d91403 fixing parsing function 2022-04-26 16:53:55 +02:00
Roberto Cirillo d4b7687246 fixing parsing function 2022-04-26 16:45:58 +02:00
Roberto Cirillo 0af35b9518 fixing parsing function 2022-04-26 16:40:12 +02:00
Roberto Cirillo a3d11b44c5 fixing parsing function 2022-04-26 16:37:28 +02:00
Roberto Cirillo 05a40c0546 fix parsing function 2022-04-26 16:16:25 +02:00
Roberto Cirillo 99fcbcead2 fix parsing function 2022-04-26 16:15:35 +02:00
Roberto Cirillo 2c28e8b60d fix parsing function 2022-04-26 16:04:34 +02:00
Roberto Cirillo 8c9124ba4a fix parsing function 2022-04-26 16:01:57 +02:00
Roberto Cirillo cf35cd8459 fix parsing function 2022-04-26 15:57:33 +02:00
Roberto Cirillo 67744b8dc9 add log 2022-04-26 15:52:38 +02:00
Roberto Cirillo cb39016d67 clean code 2022-04-26 15:50:33 +02:00
Roberto Cirillo 9bfcbdd3cc fix csv parse 2022-04-26 15:42:36 +02:00
Roberto Cirillo 8ea538eb53 set agent_root_folder to jenkins's home 2022-04-26 15:36:19 +02:00
Roberto Cirillo 303c69bb60 fix println 2022-04-26 15:31:23 +02:00
Roberto Cirillo df88ce55d8 fix println 2022-04-26 15:28:26 +02:00
Roberto Cirillo 1fe3032ddf fix deploy file name reference 2022-04-26 15:25:58 +02:00
Roberto Cirillo 11353d91df add function for managing the deploy file 2022-04-26 15:16:49 +02:00
Roberto Cirillo 52d802c6b3 set trigger every 15' 2022-04-26 14:49:16 +02:00
Roberto Cirillo 622dce0fab create new vars TRIGGER-JOB and VERSION 2022-04-22 17:09:31 +02:00
Roberto Cirillo b8856075f5 fix sintax 2022-04-22 17:03:16 +02:00
Roberto Cirillo a7fe3fc03f fix sintax 2022-04-22 17:02:12 +02:00
Roberto Cirillo 56c64cc83f fix sintax 2022-04-22 17:00:32 +02:00
Roberto Cirillo d66f8c0ecf if removed 2022-04-22 16:55:28 +02:00
Roberto Cirillo e5d69661af add deploy file creation 2022-04-22 16:50:35 +02:00
Roberto Cirillo fc86902508 add agent_root_folder definition 2022-04-22 16:35:54 +02:00
Roberto Cirillo fbd6f138f6 fix var DEPLOY_FILE 2022-04-22 16:32:26 +02:00
Roberto Cirillo 6cbde03475 fix sintax 2022-04-22 16:05:03 +02:00
Roberto Cirillo 3b213c1051 fix sintax 2022-04-22 16:03:08 +02:00
Roberto Cirillo 2563761860 duplicated stage NothingToDo ( by system |by Job) 2022-04-22 16:00:25 +02:00
Roberto Cirillo a6876bf091 fix sintax 2022-04-22 15:42:12 +02:00
Roberto Cirillo 3e68a8b432 fix sintax 2022-04-22 15:40:15 +02:00
Roberto Cirillo dfc70f9f65 add read/write from local file 2022-04-22 15:38:43 +02:00
Roberto Cirillo 588403dadf fix cron sintax 2022-04-22 11:41:05 +02:00
Roberto Cirillo 4227937a0f change cronjob settings 2022-04-15 17:41:59 +02:00
Roberto Cirillo 8c773ade0c add new echo messages 2022-04-15 17:20:46 +02:00
Roberto Cirillo cfcab49208 fix triggered vars 2022-04-15 17:13:43 +02:00
Roberto Cirillo 939560d5f2 fix triggered vars 2022-04-15 17:01:52 +02:00
Roberto Cirillo 7173d4625c fix triggered vars 2022-04-15 16:59:33 +02:00
Roberto Cirillo 37ba694c95 add some triggered vars 2022-04-15 16:57:40 +02:00
Roberto Cirillo 0c38f702b5 add double quotes to echo 2022-04-15 16:44:17 +02:00
Roberto Cirillo a3b0e55adf add job variable test 2022-04-15 16:35:31 +02:00
Roberto Cirillo 5fa3955500 update stages conditions 2022-04-15 16:26:45 +02:00
Roberto Cirillo 770888e43d update stages conditions 2022-04-15 16:04:19 +02:00
Roberto Cirillo 77d0ca7229 change stage name 2022-04-15 15:58:37 +02:00
Roberto Cirillo bf6fbb53b3 add new stages 2022-04-15 15:57:10 +02:00
Roberto Cirillo 3fc9985bc0 add new triggeredBy nagative clause 2022-04-15 15:49:41 +02:00
Roberto Cirillo 98503ec88e fix triggerBy sintax 2022-04-15 15:45:23 +02:00
Roberto Cirillo a9d38b7e91 fix emailtext sintax 2022-04-15 15:27:56 +02:00
Roberto Cirillo 3a8b857b45 fix emailtext sintax 2022-04-15 15:26:43 +02:00
Roberto Cirillo 47f57c30b4 fix emailtext sintax 2022-04-15 15:25:26 +02:00
Roberto Cirillo ef5981f6c5 cron sintax fix 2022-04-15 15:23:26 +02:00
Roberto Cirillo e570a478a7 add triggers 2022-04-15 15:17:32 +02:00
Roberto Cirillo d5aff9fe1d removed unused vars, add new stage 2022-04-15 15:06:25 +02:00
Roberto Cirillo 72347be1a7 removed unused vars 2022-04-15 14:59:34 +02:00
Roberto Cirillo ce8f40f7fa removed beforeAgent 2022-04-15 14:57:41 +02:00
Roberto Cirillo 43b75f6919 fix sintax 2022-04-15 14:53:46 +02:00
Roberto Cirillo cbe715fb9e fix sintax 2022-04-15 14:52:56 +02:00
Roberto Cirillo 7b586b5a9e fix sintax 2022-04-15 14:50:28 +02:00
Roberto Cirillo 042be9beaf fix sintax 2022-04-15 14:47:13 +02:00
Roberto Cirillo a36a3b4c90 fix sintax 2022-04-15 14:41:39 +02:00
Roberto Cirillo 0cbce19b5f small change 2022-04-15 14:31:21 +02:00
Roberto Cirillo 95f4b719b3 removed unused var 2022-04-14 17:45:29 +02:00
Roberto Cirillo f0e67ccdf9 add trigger cron every 2 hours 2022-04-14 17:08:51 +02:00
Roberto Cirillo a01f74c667 first commit 2022-04-14 16:26:13 +02:00
gCube Continuous Integration, Delivery and Orchestration e8ad467d19 Initial commit 2022-04-14 15:28:19 +02:00