Commit Graph

238 Commits

Author SHA1 Message Date
Manuele Simi 478ac55b21 Adjust echo command. 2019-12-07 22:34:53 -05:00
Manuele Simi 5d90126807 Create a job report. 2019-12-07 18:19:14 -05:00
Manuele Simi 6cbba2de51 Create a dynamic stage for each configured group. 2019-12-03 16:51:46 -05:00
Roberto Cirillo 2e801c2d36 added dataminer and gis components to the release
added stage LibrariesIILevel to the JnkinsFile
2019-12-02 16:32:38 +01:00
Manuele Simi a5030995f6 Set a dry-run profile for the first stage (maven-parent). 2019-11-22 21:53:24 -05:00
Manuele Simi 009509f2ed Remove branch column. 2019-10-28 13:35:09 -04:00
Manuele Simi ddf55fd308 Separate filename from packaging. 2019-10-25 14:32:49 -04:00
Manuele Simi d355a673c3 Add more columns to the report. 2019-10-22 22:56:48 -04:00
Manuele Simi d191329eb7 Adjust subject and body. 2019-10-22 15:17:31 -04:00
Manuele Simi fedf9bf2c3 Send report separately from build results to the releases mailing list. 2019-10-22 15:05:13 -04:00
Manuele Simi 44423acd60 Echo the report. 2019-10-22 09:12:37 -04:00
Manuele Simi f9de2f145e Adjust filename for attachments. Add email ext to README. 2019-10-22 08:56:23 -04:00
Manuele Simi 591cc0d31a Adjust email attachments. 2019-10-22 08:33:50 -04:00
Manuele Simi 1f0de2eaa0 Adjust emails. Attach log in case of failures. 2019-10-21 23:28:35 -04:00
Manuele Simi c36ef9e2a4 Fix path for build commits. 2019-10-21 23:01:14 -04:00
Manuele Simi 572d3b1727 Add release header. 2019-10-21 22:57:59 -04:00
Manuele Simi e6a734f40b Try to email the build commits. 2019-10-21 22:56:20 -04:00
Manuele Simi b3fac64bcb Add Component column. 2019-10-21 22:52:40 -04:00
Manuele Simi 0376d082cf Correct start time. 2019-10-21 22:41:17 -04:00
Manuele Simi da41ff2929 Add start time header to build_commits.csv. 2019-10-21 22:37:00 -04:00
Manuele Simi 6c6a292cac Output to CSV. 2019-10-21 22:24:32 -04:00
Manuele Simi 146303c77f Output ${AGENT_ROOT_FOLDER}/build_commits.txt. 2019-10-21 21:28:21 -04:00
Manuele Simi f74718b5e7 Clean up some code in the pipeline. 2019-10-16 21:09:11 -04:00
Roberto Cirillo 4219478782 Update 'Jenkinsfile'
fixed some echo messages
2019-10-16 18:41:40 +02:00
Roberto Cirillo 3b61167f6d Update 'Jenkinsfile'
Added the following stages:

CoreAuth, CoreSmartgears, Common
2019-10-16 18:40:05 +02:00
Manuele Simi f00919f478 More optimizations on Maven. 2019-10-11 22:51:59 -04:00
Manuele Simi 17f51ff0fd Activate the removal of the local repo. 2019-10-11 12:11:38 -04:00
Manuele Simi 62186ca73a Rename the REMOVE_LOCAL_REPO var. 2019-10-11 12:02:03 -04:00
Manuele Simi 253d5d1a28 Fix clean up value (test). 2019-10-11 11:59:26 -04:00
Manuele Simi 685be77766 Change order of env vars. 2019-10-11 11:56:03 -04:00
Manuele Simi 8a08a4bfac More logging. 2019-10-11 11:53:08 -04:00
Manuele Simi 7600fd2a36 Log new boolean parameters. 2019-10-11 11:44:16 -04:00
Manuele Simi 2d556dc0ef Just formatting a message. 2019-10-11 09:22:51 -04:00
Manuele Simi 1b642328ec New parameter to wipe out the gcube artifacts before the builds. 2019-10-11 09:14:17 -04:00
Manuele Simi f9035789e8 New boolean parameter to choose if the local repo must be wiped out or not. 2019-10-11 08:52:48 -04:00
Manuele Simi eb68c86eb0 Enable settings for the release build. 2019-10-10 23:35:51 -04:00
Manuele Simi 9f4d80e1ed New maven options to parallelize the builds. 2019-10-10 21:57:37 -04:00
Manuele Simi 9fb56fc246 Add build time to success email. 2019-10-10 15:19:37 -04:00
Manuele Simi f897c5ac3c Adjust the subject of emails. 2019-10-10 14:19:41 -04:00
Manuele Simi 375ff075e1 Set AGENT_ROOT_FOLDER as env var. 2019-10-10 12:32:40 -04:00
Manuele Simi b90b80ae42 Shell steps in the post-action block. 2019-10-10 12:26:56 -04:00
Manuele Simi 834e7c462e Email with pipeline results. 2019-10-10 12:21:52 -04:00
Manuele Simi 1f9b2fac31 Remove steps. 2019-10-10 11:04:29 -04:00
Manuele Simi b66becd978 Add steps block around the post-action. 2019-10-10 10:58:50 -04:00
Manuele Simi 0e535ee1f5 Fix missing quote. 2019-10-10 10:56:17 -04:00
Manuele Simi 2c38138c00 Change the default maven settings in the first stage and restore them as post-action. 2019-10-10 10:43:24 -04:00
Manuele Simi b9c2e5a12c Restore release-dry-run. Remove build number from the repo path. 2019-10-10 10:18:12 -04:00
Manuele Simi d748085413 Restore one share local repository among jobs. 2019-10-10 10:10:06 -04:00
Manuele Simi 514e7764da Set PIPELINE_BUILD_NUMBER in the env section. 2019-10-09 16:48:33 -04:00
Manuele Simi 08626b8234 Add build number to the repo path. 2019-10-09 16:06:19 -04:00
Manuele Simi a8accdbaa3 Create different local-repos within the same pipeline build. 2019-10-09 15:03:15 -04:00
Roberto Cirillo 5ed3477f31 remove agent_label var. set pipeline-agent-garr as string 2019-10-04 16:54:33 +02:00
Roberto Cirillo 0c538c01f6 Added NoDeps stage 2019-10-04 15:47:02 +02:00
Roberto Cirillo 131b73de0b Changed "agent_label" var to: pipeline-agent-garr 2019-10-04 15:29:30 +02:00
Manuele Simi fd0ee8e267 Use a var to define the agent label. 2019-10-04 09:11:36 -04:00
Roberto Cirillo 50545c3c22 added new stage Distribution 2019-10-03 17:25:08 +02:00
Manuele Simi 18b787ea51 Echo the results of the maven-parent job. 2019-10-02 16:42:16 -04:00
Manuele Simi e73ad73389 Correct the agent repo folder. 2019-10-02 11:48:37 -04:00
Manuele Simi 52a3e05cf0 Use a relative path for maven local_repo. 2019-10-01 12:17:50 -04:00
Manuele Simi 061b33e717 Remove copy&paste error. 2019-09-30 22:19:54 -04:00
Manuele Simi 0fe8181edd Add parameters to buildComponents. 2019-09-30 22:07:28 -04:00
Manuele Simi 5f20fd1884 Remove tools section. 2019-09-30 13:00:48 -04:00
Manuele Simi 6ebf6bde78 Matches parenthesis in the pipeline. 2019-09-30 12:57:58 -04:00
Manuele Simi 28d9446d6a Use the NodeLabelParameter plugin to set the pipeline-agent on the downstream jobs. 2019-09-30 10:55:59 -04:00
Manuele Simi 6fa0647d39 Configure downstream jobs with parameters. 2019-09-29 23:49:56 -04:00
Roberto Cirillo 0894e2adfc rename section Portal-Core to PortalCore
update the Jenkins file with the new sections defined in
gcube-4.15.0.yaml file
2019-09-26 10:46:29 +02:00
Manuele Simi 2f4f1a46d8 Forgot to quote maven-parent. 2019-09-25 09:47:49 -04:00
Manuele Simi a4256e5543 Do not call the buildComponents function for maven-parent. 2019-09-25 09:45:43 -04:00
Manuele Simi 93970747d3 Add stage to build the maven-parent at each execution (and only once). 2019-09-25 09:43:37 -04:00
Manuele Simi 20754acca4 Manage NONE as entry. 2019-09-25 09:21:45 -04:00
Manuele Simi bb522f1c77 Use the correct gCube_release_version parameter. 2019-09-25 09:15:52 -04:00
Manuele Simi c6e62514c4 Avoid parallel to run a null closure. 2019-09-04 13:11:51 -04:00
Manuele Simi df1c506a90 Manage NPE when colleccting the entries. 2019-09-04 12:15:57 -04:00
Manuele Simi 8d65b2bd4f Manage NPE when a group is not available in the release file. 2019-09-04 12:12:10 -04:00
Manuele Simi 3cc9fb3c06 Add version tag to each component. 2019-09-03 23:37:22 -04:00
Manuele Simi dd32572d09 Add withMaven closure 2019-09-03 22:01:33 -04:00
Manuele Simi cebb92951f Switch URL to master. 2019-09-03 21:52:47 -04:00
Manuele Simi 3850e86924 Set new default for the release version parameter. 2019-09-03 21:51:40 -04:00
Manuele Simi 52e5ad0820 Remove old attempts from the repository. Rename to Jenkinsfile. 2019-09-03 21:06:34 -04:00
Manuele Simi 0605e8fe6e Save last JSON version. 2019-09-02 07:59:42 -04:00
Manuele Simi 5d3625cdde Remove stage block around the build command. 2019-08-31 23:51:46 -04:00
Manuele Simi 7c74ee67cb Remove parallel blocks. Try with loops at stage level. 2019-08-31 23:10:05 -04:00
Manuele Simi 5b9d2f597f Set real jobs for parallel nested pipeline. 2019-08-31 16:04:31 -04:00
Manuele Simi 0e63817065 Use pipeline-agent 2019-08-31 08:54:23 -04:00
Manuele Simi 8c6b79ac97 Back to any agent. 2019-08-31 08:48:36 -04:00
Manuele Simi 784791813b Set none agent. 2019-08-31 08:38:32 -04:00
Manuele Simi 1ad8121e41 Fix any label. 2019-08-30 23:02:46 -04:00
Manuele Simi 9b32dc2f4b Use any node. 2019-08-30 22:58:05 -04:00
Manuele Simi cc5376ff69 Fix URL. 2019-08-30 22:47:10 -04:00
Manuele Simi faf6941dae Parse full text. 2019-08-30 22:43:32 -04:00
Manuele Simi 3f2a76f40d Remove double extension. 2019-08-30 22:40:34 -04:00
Manuele Simi ca59799284 Parse the release file from the server. 2019-08-30 22:37:25 -04:00
Manuele Simi 4f3c9156b7 Print the environment. 2019-08-30 22:20:23 -04:00
Manuele Simi 84fbfae86e Access to the workspace with readFile(). 2019-08-30 16:24:07 -04:00
Manuele Simi 07b17d6a7f Access to the workspace with readFileFromWorkspace(). 2019-08-30 16:21:31 -04:00
Manuele Simi 3b9ac54814 Access to the workspace with SEED_JOB. 2019-08-30 16:09:16 -04:00
Manuele Simi 4c8f3a4176 Access to the workspace with __FILE__. 2019-08-30 16:06:11 -04:00
Manuele Simi f32861fe19 Access to the workspace from the master node. 2019-08-30 15:34:49 -04:00
Manuele Simi 3ab4e0c39c Remove env. prefix. 2019-08-30 15:18:53 -04:00
Manuele Simi 403f80cd27 Access release files through the WORKSPACE variable. 2019-08-30 15:06:34 -04:00
Manuele Simi ed187a714c Locate the jenkinsfile. 2019-08-30 06:46:09 -04:00
Manuele Simi 6951c87314 List and print current files. 2019-08-29 17:40:43 -04:00
Manuele Simi a97397ba91 Echo content of the current folder. 2019-08-29 17:34:03 -04:00
Manuele Simi 8036fba682 Try relative path, again. 2019-08-29 17:32:12 -04:00
Manuele Simi a2740cb38f Try relative path. 2019-08-29 17:24:28 -04:00
Manuele Simi dababd3086 Fix release file path. 2019-08-29 16:58:17 -04:00
Manuele Simi 17494d8574 Add more checks on the release file. 2019-08-29 16:55:38 -04:00
Manuele Simi 0e2df958e1 First attempt to read the configuration from a JSON file. Add a sample JSON release for testing purposes. 2019-08-29 16:03:45 -04:00
Manuele Simi a261f8fec5 Resolve several issues with dynamic stages. 2019-08-29 15:12:50 -04:00
Manuele Simi 4ec0d9f47b Add RELEASE-STAGING settings. 2019-08-14 00:00:57 -04:00
Manuele Simi de6129cd32 Add gCube_release_number parameter to the pipeline and set a corresponding ENV variable for the builds. 2019-06-11 15:32:57 -04:00
Manuele Simi f55295faaa Fix the snapshots' filenames. 2019-05-30 22:24:52 -04:00
Manuele Simi b0356f4cb4 Disable full RELEASES until the pipeline is well-tested in a production environment. 2019-05-30 22:20:17 -04:00
Manuele Simi be1627d1b4 Configure the agent path for the different settings files. 2019-05-30 22:11:17 +02:00
Manuele Simi 041d823745 Switch to multiline steps. 2019-05-29 23:25:00 -04:00
Manuele Simi cc07b2eb5a Use a fixed root folder for the local maven repo. 2019-05-29 23:24:09 -04:00
Manuele Simi acb2f7067d Add missing steps block. 2019-05-29 22:31:08 -04:00
Manuele Simi 32d66c6a7e Make the local repo path available through an environment variable. 2019-05-29 22:25:29 -04:00
Manuele Simi f97f105687 Use a var to define the jdk used by Maven. 2019-05-29 22:05:18 -04:00
Manuele Simi e1167fcb45 Access to the local file system with the HOME env variable. 2019-05-29 22:04:19 -04:00
Manuele Simi 804f285b82 Build only on agents labeled as 'pipeline-agent'. 2019-05-29 21:56:05 -04:00
Manuele Simi 7aae11e022 Add links to documentation to the pipeline elements. 2019-05-29 20:46:15 -04:00
Manuele Simi 5ad17a0592 New clean up stage. 2019-05-28 22:54:34 -04:00
Manuele Simi 3fc96549bd Manage the dry-run parameters. 2019-05-28 22:04:34 -04:00
Manuele Simi be04eb00e4 Fix syntax. 2019-05-28 22:15:20 +02:00
Manuele Simi 2cb403e808 Remove the options map. Initialize the maven options. 2019-05-28 22:09:59 +02:00
Manuele Simi 86941c78ac Add options eval. 2019-05-28 21:59:42 +02:00
Manuele Simi 3926924b66 Maven options as map. 2019-05-28 21:59:08 +02:00
Manuele Simi dabe96d838 Extend maven options. 2019-05-28 21:52:16 +02:00
Manuele Simi b06cde66b3 Remove the branch name from the build steps. 2019-05-28 21:43:53 +02:00
Manuele Simi d0bf65ad9a Init all the vars. 2019-05-28 21:32:59 +02:00
Manuele Simi 82afb3ecf2 Prepare the different options for the builds. 2019-05-28 21:27:19 +02:00
Manuele Simi 8793e00371 More pretty formatting. 2019-05-28 17:01:30 +02:00
Manuele Simi 26d46859ec Pretty formatting. 2019-05-28 16:59:50 +02:00
Manuele Simi ff22bc3d07 Add stubs for post-build actions. 2019-05-28 16:43:07 +02:00
Manuele Simi 415da5a172 Define the full pipeline and organize the stages in steps. 2019-05-28 16:40:30 +02:00
Manuele Simi 1114841feb Formalize the pipeline parameters. 2019-05-28 09:38:19 -04:00
Manuele Simi e405b681ef First draft of the pipeline script. 2019-05-28 09:00:59 -04:00