From 7241e4f257569822cb96aa42c0151e487b7f4034 Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Thu, 4 Aug 2022 15:43:56 -0400 Subject: [PATCH] Jenkins Resources Increase (#180) * fixed IAM roles and code cleanup Signed-off-by: pgodithi * parent 4c38aa5d3ae7993e33a611be2596247b387f848b author pgodithi 1651777341 -0400 committer prudhvigodithi 1659618802 -0400 gpgsig -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuaPMeSek3p9IWNzDMSDf0RO9/aIFAmLrxfIACgkQMSDf0RO9 /aJzsw//a2ILAdIZJ4oGzBzOfZPZVGKyid4kzQD9Kb5yNZtCqHGRrmrueiGxyECD Sj81XU28LOgdcKkSB7ZRsaI/fG5ZpRT9xkv+LZmdct1KJSVjS8x+HM+zUuBrrW4Q QVYI/5T19BLLngRUTm5IDN2qYkmRpX1KqprcxGqI6FEug65paOUhfNflf46DSpz+ Lwv1PyfgZuBhVzHupJ4STRWI7fi2urK+Cs7JnNRIVGFl+EeajKDHQNSe8WvATI5f 1SVCLlW0/+NsYNiPS2Y/M6Mtnu/q5Sl93VTGinLVC4isnurHE99x3Mb5Ku6hmTpy pQO7nJ/LFFquY3uevEf/AeXOTQP1Bx07CGAnRr5KsiHDivpFIIy68pnsbfvFBGRb HxK0F8NOrIL1xDs1ybWjau/65nJ+hQDnH1poYfBQ/CqnO8cM0tuI6GyL+qzhBbt5 uSlm0Dl0qYqY4LA2bvY7uQ07aSipgp9RwwijDKQvy02D02oyMaS9eCY6BnZ0HjDY mKK/TlM9xPkz7OOwlrruSCRe585Qha+77fENGR0Ymezg6VRFEje2ULNsNfBLhEGe j80/IMv3HdRd+L5mqbJl7Pl+cylb7q0lAN4wix72AoeE49/ONpjhcbTt/IDNNJK/ MlZBQkK22Z9safkWRNkUMzvcMClBav6ZahOgF7TMLnjIkGP6L8o= =dih/ -----END PGP SIGNATURE----- Fix tests Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added 2 new plugins Signed-off-by: pgodithi Add readme doc Signed-off-by: pgodithi Added docker resources Signed-off-by: pgodithi Added docker resources Signed-off-by: pgodithi Bump minor version Signed-off-by: pgodithi change docker tag to 2.332.3-lts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi Added IAM required imports Signed-off-by: pgodithi Added agent node unit tests Signed-off-by: pgodithi Added agent node unit tests Signed-off-by: pgodithi Added Managed SSM Policy to Agent instance role (#117) Signed-off-by: Rishabh Singh fix agentAssumeRole Signed-off-by: pgodithi Ecr public Signed-off-by: pgodithi Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi Added AmazonSSMManagedInstanceCore policy to agents. (#124) * fixed IAM roles and code cleanup Signed-off-by: pgodithi * Fix tests Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added 2 new plugins Signed-off-by: pgodithi * Add readme doc Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Bump minor version Signed-off-by: pgodithi * change docker tag to 2.332.3-lts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * Added IAM required imports Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * fix agentAssumeRole Signed-off-by: pgodithi * Ecr public Signed-off-by: pgodithi * Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi Added new jenkins agents and logging bug-fix (#126) Signed-off-by: Rishabh Singh Added new output parameters and updated jenkins image tag (#128) Signed-off-by: Rishabh Singh use jenkins-2.332.3 jdk8 base image (#129) Signed-off-by: Rishabh Singh added support for QEMU emulators (#131) Signed-off-by: Rishabh Singh Add Docker restart policy (#137) * fixed IAM roles and code cleanup Signed-off-by: pgodithi * Fix tests Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added 2 new plugins Signed-off-by: pgodithi * Add readme doc Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Bump minor version Signed-off-by: pgodithi * change docker tag to 2.332.3-lts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * Added IAM required imports Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * fix agentAssumeRole Signed-off-by: pgodithi * Ecr public Signed-off-by: pgodithi * Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi * added docker-compose restart policy Signed-off-by: pgodithi Add markup formatter as safe/html disable syntax highlighting to allow html (#138) Signed-off-by: Peter Zhu Set cache to false for aws secret manager plugin (#140) Signed-off-by: Peter Zhu Add environment variables using configuration as code (#136) * Add environment variables using configuration as code Signed-off-by: Sayali Gaikawad Install workflow-api plugin to get latest version and remove lockable permissions (#141) * Install workflow-api plugin to get latest version Signed-off-by: Sayali Gaikawad * Remove lockable permissions Signed-off-by: Sayali Gaikawad [Bug-fix]: Handle multiple colons and space (#142) * Handle multiple colons and space Signed-off-by: Sayali Gaikawad * Handle multiple space Signed-off-by: Sayali Gaikawad Move env variabled to yaml (#143) * Move to yaml Signed-off-by: Sayali Gaikawad add ubuntu agent and cdn with lambda@edge resource for public access (#134) Signed-off-by: Rishabh Singh Reload configuration as code via curl instead of cli (#145) * Reload configuration as code via curl instead of cli Signed-off-by: Sayali Gaikawad Main/Agent Node new setups on tag and executors (#147) * Main/Agent Node new setups on tag and executors Signed-off-by: Peter Zhu * Remove DCO check as it is replaced by dco app Signed-off-by: Peter Zhu * Remove stack in node ts as it is not used anymore Signed-off-by: Peter Zhu Fix Ubuntu agent init script bug (#148) Signed-off-by: Peter Zhu Add Ubuntu Single Host for Gradle Check (#149) * Add Ubuntu Single Host for Gradle Check Signed-off-by: Peter Zhu * Change default idle time to 60min Signed-off-by: Peter Zhu Raise the gradle check runner to have c518xlarge as in Fork Jenkins (#150) Signed-off-by: Peter Zhu New cmds reduce AL2 failure and increase gradle check to c524xlarge runner (#151) Signed-off-by: Peter Zhu Add jdk14 as it is required by OS 1.x gradle check (#152) Signed-off-by: Peter Zhu Migrate perf test agent setups to public jenkins (#153) Signed-off-by: Peter Zhu Resource increase Signed-off-by: prudhvigodithi Adds lockable-resources plugin and sshd plugin (#156) * Add lockable plugin Signed-off-by: Sayali Gaikawad Add initial windows packer templates for ami (#155) * Add initial windows packer templates for ami Signed-off-by: Peter Zhu * Tweak readme Signed-off-by: Peter Zhu * Make changes based on the PR comments Signed-off-by: Peter Zhu * Disable windows internal firewall and allow Security Group to take care of ports Signed-off-by: Peter Zhu * Change templates to use gp3 as default ebs Signed-off-by: Peter Zhu Add Mac agent support (#158) * parent 83a6200a1a322c7fa5b2ba9ea3a2ce80333b50dd author pgodithi 1651769732 -0400 committer pgodithi 1658274990 -0400 gpgsig -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuaPMeSek3p9IWNzDMSDf0RO9/aIFAmLXRK4ACgkQMSDf0RO9 /aKKpQ/9FQ92spUtBEdt2lf4Kz6c2x7+eunr5kzzxZPB8fj28AFWBtGP/NA6a/WK BjRgtxZ4060PCDUtbcnfFy8mg8PdQa03FpofQKr6exSfDTI+TNISJAkcI2HIWzqx ehiFRDGWG577fgrnk67xxd6LxD8sO8EHWBJzZWKrYA3z7f0Q05n1q2osm/jhDYgK cEDQBHZJVi4htO2sBGJO3caqCbqt0EphxYy+uua5On4a2ZgWlBUxjqoaZ6X/LrnR 6IoN8PYVUtyrkbWkkXB+0T4PPDYP8DwnCrCsDQxQyYQ7tBqnR3hQ6nfga2d4Dry5 Dz9oqPoWZjDJNBAf+B6NAmwmyIZHn2lnVL/b8GvwGjSOixyUqaptRKVrg/PwIT+I i2CeMuGIxIG8pycC+wruSNoNqV26Vm7rFSOC4VSvOXneQUStMrAEM+LjcCDtG8bF 0837RaB4Vj37QfkXJyQl2JLTvw6TUKbZuCXqSTLF6oy4nfKN1wBPhfmgjRt146o3 VKt9iZ/q5kOEAPhEHJkHWoC/C+jaMRkVk0ZV5CoujQcIPZX2HfA88RogNZe0Ommy ayc+gLw8oBiRBeKkWuQLrLtrBYCLKrIK5qjEEj9MqLxbLSlDRXJjvZvPSUGqS2wg a8KKD0i9faPpRIuViJRqHztQBXVsv0UsYFMeeid00lJm2F4dmBk= =c8LN -----END PGP SIGNATURE----- fixed IAM roles and code cleanup Signed-off-by: pgodithi Fix tests Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added 2 new plugins Signed-off-by: pgodithi Add readme doc Signed-off-by: pgodithi Added docker resources Signed-off-by: pgodithi Added docker resources Signed-off-by: pgodithi Bump minor version Signed-off-by: pgodithi change docker tag to 2.332.3-lts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi Added IAM required imports Signed-off-by: pgodithi Added agent node unit tests Signed-off-by: pgodithi Added agent node unit tests Signed-off-by: pgodithi Added Managed SSM Policy to Agent instance role (#117) Signed-off-by: Rishabh Singh fix agentAssumeRole Signed-off-by: pgodithi Ecr public Signed-off-by: pgodithi Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi Added AmazonSSMManagedInstanceCore policy to agents. (#124) * fixed IAM roles and code cleanup Signed-off-by: pgodithi * Fix tests Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added 2 new plugins Signed-off-by: pgodithi * Add readme doc Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Bump minor version Signed-off-by: pgodithi * change docker tag to 2.332.3-lts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * Added IAM required imports Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * fix agentAssumeRole Signed-off-by: pgodithi * Ecr public Signed-off-by: pgodithi * Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi Added new jenkins agents and logging bug-fix (#126) Signed-off-by: Rishabh Singh Added new output parameters and updated jenkins image tag (#128) Signed-off-by: Rishabh Singh use jenkins-2.332.3 jdk8 base image (#129) Signed-off-by: Rishabh Singh added support for QEMU emulators (#131) Signed-off-by: Rishabh Singh Add Docker restart policy (#137) * fixed IAM roles and code cleanup Signed-off-by: pgodithi * Fix tests Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added 2 new plugins Signed-off-by: pgodithi * Add readme doc Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Bump minor version Signed-off-by: pgodithi * change docker tag to 2.332.3-lts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * Added IAM required imports Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * fix agentAssumeRole Signed-off-by: pgodithi * Ecr public Signed-off-by: pgodithi * Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi * added docker-compose restart policy Signed-off-by: pgodithi Add markup formatter as safe/html disable syntax highlighting to allow html (#138) Signed-off-by: Peter Zhu Set cache to false for aws secret manager plugin (#140) Signed-off-by: Peter Zhu Add environment variables using configuration as code (#136) * Add environment variables using configuration as code Signed-off-by: Sayali Gaikawad Install workflow-api plugin to get latest version and remove lockable permissions (#141) * Install workflow-api plugin to get latest version Signed-off-by: Sayali Gaikawad * Remove lockable permissions Signed-off-by: Sayali Gaikawad [Bug-fix]: Handle multiple colons and space (#142) * Handle multiple colons and space Signed-off-by: Sayali Gaikawad * Handle multiple space Signed-off-by: Sayali Gaikawad Move env variabled to yaml (#143) * Move to yaml Signed-off-by: Sayali Gaikawad add ubuntu agent and cdn with lambda@edge resource for public access (#134) Signed-off-by: Rishabh Singh Reload configuration as code via curl instead of cli (#145) * Reload configuration as code via curl instead of cli Signed-off-by: Sayali Gaikawad Main/Agent Node new setups on tag and executors (#147) * Main/Agent Node new setups on tag and executors Signed-off-by: Peter Zhu * Remove DCO check as it is replaced by dco app Signed-off-by: Peter Zhu * Remove stack in node ts as it is not used anymore Signed-off-by: Peter Zhu Fix Ubuntu agent init script bug (#148) Signed-off-by: Peter Zhu Add Ubuntu Single Host for Gradle Check (#149) * Add Ubuntu Single Host for Gradle Check Signed-off-by: Peter Zhu * Change default idle time to 60min Signed-off-by: Peter Zhu Raise the gradle check runner to have c518xlarge as in Fork Jenkins (#150) Signed-off-by: Peter Zhu New cmds reduce AL2 failure and increase gradle check to c524xlarge runner (#151) Signed-off-by: Peter Zhu Add jdk14 as it is required by OS 1.x gradle check (#152) Signed-off-by: Peter Zhu Migrate perf test agent setups to public jenkins (#153) Signed-off-by: Peter Zhu Add Mac agent support Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added max-len, eqeqeq Signed-off-by: pgodithi Add Mac agent support: Added tests Signed-off-by: pgodithi Add Mac agent support: Added tests Signed-off-by: pgodithi Add Mac agent support: Added tests Signed-off-by: pgodithi * Add Mac agent support: fix conflicts Signed-off-by: pgodithi * Add Mac agent support: fix conflicts Signed-off-by: pgodithi Make sure gradle check agent only runs once (#159) * Make sure gradle check agent only runs once Signed-off-by: Peter Zhu * Remove defaults value Signed-off-by: Peter Zhu Make agent label have consistent capital naming (#160) Signed-off-by: Peter Zhu Add yum db cleanup to AL2 and remove lock to Ubuntu2004 (#162) * Add yum db cleanup to AL2 runners Signed-off-by: Peter Zhu * Update scripts Signed-off-by: Peter Zhu * Add Ubuntu cleanups Signed-off-by: Peter Zhu Remove fixed password setups in Windows Packer (#167) Signed-off-by: Peter Zhu MacOS agent AMI creation using packer. (#164) * parent 83a6200a1a322c7fa5b2ba9ea3a2ce80333b50dd author pgodithi 1651769732 -0400 committer pgodithi 1658274990 -0400 gpgsig -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuaPMeSek3p9IWNzDMSDf0RO9/aIFAmLXRK4ACgkQMSDf0RO9 /aKKpQ/9FQ92spUtBEdt2lf4Kz6c2x7+eunr5kzzxZPB8fj28AFWBtGP/NA6a/WK BjRgtxZ4060PCDUtbcnfFy8mg8PdQa03FpofQKr6exSfDTI+TNISJAkcI2HIWzqx ehiFRDGWG577fgrnk67xxd6LxD8sO8EHWBJzZWKrYA3z7f0Q05n1q2osm/jhDYgK cEDQBHZJVi4htO2sBGJO3caqCbqt0EphxYy+uua5On4a2ZgWlBUxjqoaZ6X/LrnR 6IoN8PYVUtyrkbWkkXB+0T4PPDYP8DwnCrCsDQxQyYQ7tBqnR3hQ6nfga2d4Dry5 Dz9oqPoWZjDJNBAf+B6NAmwmyIZHn2lnVL/b8GvwGjSOixyUqaptRKVrg/PwIT+I i2CeMuGIxIG8pycC+wruSNoNqV26Vm7rFSOC4VSvOXneQUStMrAEM+LjcCDtG8bF 0837RaB4Vj37QfkXJyQl2JLTvw6TUKbZuCXqSTLF6oy4nfKN1wBPhfmgjRt146o3 VKt9iZ/q5kOEAPhEHJkHWoC/C+jaMRkVk0ZV5CoujQcIPZX2HfA88RogNZe0Ommy ayc+gLw8oBiRBeKkWuQLrLtrBYCLKrIK5qjEEj9MqLxbLSlDRXJjvZvPSUGqS2wg a8KKD0i9faPpRIuViJRqHztQBXVsv0UsYFMeeid00lJm2F4dmBk= =c8LN -----END PGP SIGNATURE----- fixed IAM roles and code cleanup Signed-off-by: pgodithi Fix tests Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added 2 new plugins Signed-off-by: pgodithi Add readme doc Signed-off-by: pgodithi Added docker resources Signed-off-by: pgodithi Added docker resources Signed-off-by: pgodithi Bump minor version Signed-off-by: pgodithi change docker tag to 2.332.3-lts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi Added IAM required imports Signed-off-by: pgodithi Added agent node unit tests Signed-off-by: pgodithi Added agent node unit tests Signed-off-by: pgodithi Added Managed SSM Policy to Agent instance role (#117) Signed-off-by: Rishabh Singh fix agentAssumeRole Signed-off-by: pgodithi Ecr public Signed-off-by: pgodithi Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi Added AmazonSSMManagedInstanceCore policy to agents. (#124) * fixed IAM roles and code cleanup Signed-off-by: pgodithi * Fix tests Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added 2 new plugins Signed-off-by: pgodithi * Add readme doc Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Bump minor version Signed-off-by: pgodithi * change docker tag to 2.332.3-lts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * Added IAM required imports Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * fix agentAssumeRole Signed-off-by: pgodithi * Ecr public Signed-off-by: pgodithi * Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi Added new jenkins agents and logging bug-fix (#126) Signed-off-by: Rishabh Singh Added new output parameters and updated jenkins image tag (#128) Signed-off-by: Rishabh Singh use jenkins-2.332.3 jdk8 base image (#129) Signed-off-by: Rishabh Singh added support for QEMU emulators (#131) Signed-off-by: Rishabh Singh Add Docker restart policy (#137) * fixed IAM roles and code cleanup Signed-off-by: pgodithi * Fix tests Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added 2 new plugins Signed-off-by: pgodithi * Add readme doc Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Bump minor version Signed-off-by: pgodithi * change docker tag to 2.332.3-lts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * Added IAM required imports Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * fix agentAssumeRole Signed-off-by: pgodithi * Ecr public Signed-off-by: pgodithi * Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi * added docker-compose restart policy Signed-off-by: pgodithi Add markup formatter as safe/html disable syntax highlighting to allow html (#138) Signed-off-by: Peter Zhu Set cache to false for aws secret manager plugin (#140) Signed-off-by: Peter Zhu Add environment variables using configuration as code (#136) * Add environment variables using configuration as code Signed-off-by: Sayali Gaikawad Install workflow-api plugin to get latest version and remove lockable permissions (#141) * Install workflow-api plugin to get latest version Signed-off-by: Sayali Gaikawad * Remove lockable permissions Signed-off-by: Sayali Gaikawad [Bug-fix]: Handle multiple colons and space (#142) * Handle multiple colons and space Signed-off-by: Sayali Gaikawad * Handle multiple space Signed-off-by: Sayali Gaikawad Move env variabled to yaml (#143) * Move to yaml Signed-off-by: Sayali Gaikawad add ubuntu agent and cdn with lambda@edge resource for public access (#134) Signed-off-by: Rishabh Singh Reload configuration as code via curl instead of cli (#145) * Reload configuration as code via curl instead of cli Signed-off-by: Sayali Gaikawad Main/Agent Node new setups on tag and executors (#147) * Main/Agent Node new setups on tag and executors Signed-off-by: Peter Zhu * Remove DCO check as it is replaced by dco app Signed-off-by: Peter Zhu * Remove stack in node ts as it is not used anymore Signed-off-by: Peter Zhu Fix Ubuntu agent init script bug (#148) Signed-off-by: Peter Zhu Add Ubuntu Single Host for Gradle Check (#149) * Add Ubuntu Single Host for Gradle Check Signed-off-by: Peter Zhu * Change default idle time to 60min Signed-off-by: Peter Zhu Raise the gradle check runner to have c518xlarge as in Fork Jenkins (#150) Signed-off-by: Peter Zhu New cmds reduce AL2 failure and increase gradle check to c524xlarge runner (#151) Signed-off-by: Peter Zhu Add jdk14 as it is required by OS 1.x gradle check (#152) Signed-off-by: Peter Zhu Migrate perf test agent setups to public jenkins (#153) Signed-off-by: Peter Zhu Add Mac agent support Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added max-len, eqeqeq Signed-off-by: pgodithi Add Mac agent support: Added tests Signed-off-by: pgodithi Add Mac agent support: Added tests Signed-off-by: pgodithi Add Mac agent support: Added tests Signed-off-by: pgodithi * Add Mac agent support: fix conflicts Signed-off-by: pgodithi * Add Mac agent support: fix conflicts Signed-off-by: pgodithi * MacOS agents: packer Signed-off-by: pgodithi * MacOS agents: packer, fix conflicts Signed-off-by: pgodithi * MacOS agents: packer, fix conflicts Signed-off-by: pgodithi * MacOS agents: packer fix suggestions Signed-off-by: pgodithi * MacOS agents: packer fix suggestions Signed-off-by: pgodithi * MacOS agents: packer fix suggestions Signed-off-by: pgodithi Make jenkins jdk tool match manifest jdk naming (#170) Signed-off-by: Peter Zhu Adding new Windows agent and organize Mac agent configurations (#169) * Adding new Windows agent and organize Mac agent configurations Signed-off-by: Peter Zhu * Update ami number Signed-off-by: Peter Zhu * Update ntp windows Signed-off-by: Peter Zhu * Add mac launchtimeout Signed-off-by: Peter Zhu Add functionality to restrict server access (#171) * Add functionality to restrict access Signed-off-by: Sayali Gaikawad Fix gradle check by removing old caches and add back docker-compose (#172) * Fix gradle check by removing old caches and add back docker-compose Signed-off-by: Peter Zhu * Remove JDK only in caches and show the remove msgs Signed-off-by: Peter Zhu * Remove removing caches Signed-off-by: Peter Zhu Changed cpu and memory metric stat to avg (#173) Signed-off-by: Rishabh Singh MacOS agents support default /bin/bash and remove nodeProperties in CDK code. (#175) * parent 83a6200a1a322c7fa5b2ba9ea3a2ce80333b50dd author pgodithi 1651769732 -0400 committer pgodithi 1658274990 -0400 gpgsig -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuaPMeSek3p9IWNzDMSDf0RO9/aIFAmLXRK4ACgkQMSDf0RO9 /aKKpQ/9FQ92spUtBEdt2lf4Kz6c2x7+eunr5kzzxZPB8fj28AFWBtGP/NA6a/WK BjRgtxZ4060PCDUtbcnfFy8mg8PdQa03FpofQKr6exSfDTI+TNISJAkcI2HIWzqx ehiFRDGWG577fgrnk67xxd6LxD8sO8EHWBJzZWKrYA3z7f0Q05n1q2osm/jhDYgK cEDQBHZJVi4htO2sBGJO3caqCbqt0EphxYy+uua5On4a2ZgWlBUxjqoaZ6X/LrnR 6IoN8PYVUtyrkbWkkXB+0T4PPDYP8DwnCrCsDQxQyYQ7tBqnR3hQ6nfga2d4Dry5 Dz9oqPoWZjDJNBAf+B6NAmwmyIZHn2lnVL/b8GvwGjSOixyUqaptRKVrg/PwIT+I i2CeMuGIxIG8pycC+wruSNoNqV26Vm7rFSOC4VSvOXneQUStMrAEM+LjcCDtG8bF 0837RaB4Vj37QfkXJyQl2JLTvw6TUKbZuCXqSTLF6oy4nfKN1wBPhfmgjRt146o3 VKt9iZ/q5kOEAPhEHJkHWoC/C+jaMRkVk0ZV5CoujQcIPZX2HfA88RogNZe0Ommy ayc+gLw8oBiRBeKkWuQLrLtrBYCLKrIK5qjEEj9MqLxbLSlDRXJjvZvPSUGqS2wg a8KKD0i9faPpRIuViJRqHztQBXVsv0UsYFMeeid00lJm2F4dmBk= =c8LN -----END PGP SIGNATURE----- fixed IAM roles and code cleanup Signed-off-by: pgodithi Fix tests Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added assume role feature Signed-off-by: pgodithi Added 2 new plugins Signed-off-by: pgodithi Add readme doc Signed-off-by: pgodithi Added docker resources Signed-off-by: pgodithi Added docker resources Signed-off-by: pgodithi Bump minor version Signed-off-by: pgodithi change docker tag to 2.332.3-lts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi added jenkinsOpts Signed-off-by: pgodithi Added IAM required imports Signed-off-by: pgodithi Added agent node unit tests Signed-off-by: pgodithi Added agent node unit tests Signed-off-by: pgodithi Added Managed SSM Policy to Agent instance role (#117) Signed-off-by: Rishabh Singh fix agentAssumeRole Signed-off-by: pgodithi Ecr public Signed-off-by: pgodithi Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi Added AmazonSSMManagedInstanceCore policy to agents. (#124) * fixed IAM roles and code cleanup Signed-off-by: pgodithi * Fix tests Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added 2 new plugins Signed-off-by: pgodithi * Add readme doc Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Bump minor version Signed-off-by: pgodithi * change docker tag to 2.332.3-lts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * Added IAM required imports Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * fix agentAssumeRole Signed-off-by: pgodithi * Ecr public Signed-off-by: pgodithi * Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi Added new jenkins agents and logging bug-fix (#126) Signed-off-by: Rishabh Singh Added new output parameters and updated jenkins image tag (#128) Signed-off-by: Rishabh Singh use jenkins-2.332.3 jdk8 base image (#129) Signed-off-by: Rishabh Singh added support for QEMU emulators (#131) Signed-off-by: Rishabh Singh Add Docker restart policy (#137) * fixed IAM roles and code cleanup Signed-off-by: pgodithi * Fix tests Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added assume role feature Signed-off-by: pgodithi * Added 2 new plugins Signed-off-by: pgodithi * Add readme doc Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Added docker resources Signed-off-by: pgodithi * Bump minor version Signed-off-by: pgodithi * change docker tag to 2.332.3-lts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * added jenkinsOpts Signed-off-by: pgodithi * Added IAM required imports Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * Added agent node unit tests Signed-off-by: pgodithi * fix agentAssumeRole Signed-off-by: pgodithi * Ecr public Signed-off-by: pgodithi * Added AmazonSSMManagedInstanceCore Signed-off-by: pgodithi * added docker-compose restart policy Signed-off-by: pgodithi Add markup formatter as safe/html disable syntax highlighting to allow html (#138) Signed-off-by: Peter Zhu Set cache to false for aws secret manager plugin (#140) Signed-off-by: Peter Zhu Add environment variables using configuration as code (#136) * Add environment variables using configuration as code Signed-off-by: Sayali Gaikawad Install workflow-api plugin to get latest version and remove lockable permissions (#141) * Install workflow-api plugin to get latest version Signed-off-by: Sayali Gaikawad * Remove lockable permissions Signed-off-by: Sayali Gaikawad [Bug-fix]: Handle multiple colons and space (#142) * Handle multiple colons and space Signed-off-by: Sayali Gaikawad * Handle multiple space Signed-off-by: Sayali Gaikawad Move env variabled to yaml (#143) * Move to yaml Signed-off-by: Sayali Gaikawad add ubuntu agent and cdn with lambda@edge resource for public access (#134) Signed-off-by: Rishabh Singh Reload configuration as code via curl instead of cli (#145) * Reload configuration as code via curl instead of cli Signed-off-by: Sayali Gaikawad Main/Agent Node new setups on tag and executors (#147) * Main/Agent Node new setups on tag and executors Signed-off-by: Peter Zhu * Remove DCO check as it is replaced by dco app Signed-off-by: Peter Zhu * Remove stack in node ts as it is not used anymore Signed-off-by: Peter Zhu Fix Ubuntu agent init script bug (#148) Signed-off-by: Peter Zhu Add Ubuntu Single Host for Gradle Check (#149) * Add Ubuntu Single Host for Gradle Check Signed-off-by: Peter Zhu * Change default idle time to 60min Signed-off-by: Peter Zhu Raise the gradle check runner to have c518xlarge as in Fork Jenkins (#150) Signed-off-by: Peter Zhu New cmds reduce AL2 failure and increase gradle check to c524xlarge runner (#151) Signed-off-by: Peter Zhu Add jdk14 as it is required by OS 1.x gradle check (#152) Signed-off-by: Peter Zhu Migrate perf test agent setups to public jenkins (#153) Signed-off-by: Peter Zhu Add Mac agent support Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added README Signed-off-by: pgodithi Add Mac agent support: Added max-len, eqeqeq Signed-off-by: pgodithi Add Mac agent support: Added tests Signed-off-by: pgodithi Add Mac agent support: Added tests Signed-off-by: pgodithi Add Mac agent support: Added tests Signed-off-by: pgodithi * Add Mac agent support: fix conflicts Signed-off-by: pgodithi * Add Mac agent support: fix conflicts Signed-off-by: pgodithi * MacOS agents: packer Signed-off-by: pgodithi * MacOS agents: packer, fix conflicts Signed-off-by: pgodithi * MacOS agents: packer, fix conflicts Signed-off-by: pgodithi * MacOS agents: packer fix suggestions Signed-off-by: pgodithi * MacOS agents: packer fix suggestions Signed-off-by: pgodithi * MacOS agents: packer fix suggestions Signed-off-by: pgodithi * Fix ci issue #174 Signed-off-by: prudhvigodithi * Fix ci issue #174 Signed-off-by: prudhvigodithi * Fix ci issue #174 Signed-off-by: prudhvigodithi * Fix ci issue #174 Signed-off-by: prudhvigodithi Added logic to deploy default jenkins agent (#176) * Changed cpu and memory metric stat to avg Signed-off-by: Rishabh Singh * Added logic to default on dummy jenkins agent Signed-off-by: Rishabh Singh Add ability to assume multiple roles (#178) Signed-off-by: Sayali Gaikawad * Update docker-compose Signed-off-by: prudhvigodithi * Update docker-compose: Fix tests Signed-off-by: prudhvigodithi --- lib/compute/jenkins-main-node.ts | 2 ++ resources/docker-compose.yml | 10 +++++----- test/compute/jenkins-main-node.test.ts | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/compute/jenkins-main-node.ts b/lib/compute/jenkins-main-node.ts index b9d762ac..4e3e80a1 100644 --- a/lib/compute/jenkins-main-node.ts +++ b/lib/compute/jenkins-main-node.ts @@ -240,6 +240,8 @@ export class JenkinsMainNode { InitCommand.shellCommand('pip3 install botocore'), // eslint-disable-next-line max-len InitCommand.shellCommand('sudo wget -nv https://github.com/mikefarah/yq/releases/download/v4.22.1/yq_linux_amd64 -O /usr/bin/yq && sudo chmod +x /usr/bin/yq'), + // eslint-disable-next-line max-len + InitCommand.shellCommand('sudo curl -L https://github.com/docker/compose/releases/download/v2.9.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose && sudo chmod +x /usr/bin/docker-compose'), InitCommand.shellCommand('python3 -m pip install --upgrade pip && python3 -m pip install cryptography boto3 requests-aws4auth'), InitCommand.shellCommand(httpConfigProps.useSsl diff --git a/resources/docker-compose.yml b/resources/docker-compose.yml index 3d526b68..a1d54fbd 100644 --- a/resources/docker-compose.yml +++ b/resources/docker-compose.yml @@ -11,18 +11,18 @@ services: - 50000:50000 container_name: jenkins environment: - - JENKINS_JAVA_OPTS="-Xmx8g" + - JENKINS_JAVA_OPTS="-Xmx18g" - CASC_RELOAD_TOKEN=reloadPasswordHere volumes: - /var/lib/jenkins:/var/jenkins_home deploy: resources: limits: - cpus: '4' - memory: '10g' + cpus: '12' + memory: '20g' reservations: - cpus: '4' - memory: '10g' + cpus: '12' + memory: '20g' logging: driver: awslogs options: diff --git a/test/compute/jenkins-main-node.test.ts b/test/compute/jenkins-main-node.test.ts index 4f54668e..b75a77a0 100644 --- a/test/compute/jenkins-main-node.test.ts +++ b/test/compute/jenkins-main-node.test.ts @@ -26,7 +26,7 @@ describe('JenkinsMainNode Config Elements', () => { // THEN test('Config elements expected counts', async () => { - expect(configElements.filter((e) => e.elementType === 'COMMAND')).toHaveLength(18); + expect(configElements.filter((e) => e.elementType === 'COMMAND')).toHaveLength(19); expect(configElements.filter((e) => e.elementType === 'PACKAGE')).toHaveLength(10); expect(configElements.filter((e) => e.elementType === 'FILE')).toHaveLength(4); });