Commit Graph

430 Commits

Author SHA1 Message Date
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
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