Commit Graph

387 Commits

Author SHA1 Message Date
Roberto Cirillo 724a1b6228 rename var IS_CRON with IS_SCHEDULED 2022-10-05 10:21:20 +02:00
Roberto Cirillo 15b75dea9d extract deployPendingJobs method from DeployFromSystem stage 2022-10-05 09:59:20 +02:00
Roberto Cirillo aeb7c55861 removed IS_CRON_TMP var. Restored the old one IS_CRON 2022-10-04 16:26:49 +02:00
Roberto Cirillo 9a7fd3687e removed unused imports 2022-10-04 16:24:43 +02:00
Roberto Cirillo 15b62f11b0 Merge branch 'feature/23745' 2022-10-04 16:21:46 +02:00
Roberto Cirillo 0735ed9eda clean code 2022-10-04 16:20:42 +02:00
Roberto Cirillo c99b667698 clean unused methods 2022-10-04 16:04:32 +02:00
Roberto Cirillo 4508798749 removed echo 2022-10-04 16:01:00 +02:00
Roberto Cirillo 368b9609a2 fix print 2022-10-04 12:31:28 +02:00
Roberto Cirillo 922ffd83be merge works. add new print 2022-10-04 12:23:08 +02:00
Roberto Cirillo d7bc7469e0 small fix 2022-10-04 12:15:46 +02:00
Roberto Cirillo 092b4213d3 merging deploy files test 2022-10-04 11:49:50 +02:00
Roberto Cirillo 1f93095e75 merging test 2022-10-04 11:42:36 +02:00
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