Jenkins – Active Choice: S3 – Return necessary key value from JSON file

For a parameterized assembly with an image tag selection, you will need the Active Choices plugin Go to "Manage Jenkins"   Section "Manage Plugins"   Go to the "Available" tab and select "Active Choices" in the search. Install it.   Create a "New Item" – "Pipeline", indicate that it will be a parameterized assembly, and … Continue reading " Jenkins – Active Choice: S3 – Return necessary key value from JSON file"

 Python – AWS S3 keep N latest artifacts

This script gets a list of all directories in the bucket and deletes all objects in each directory, except for the last "N" specified. To run the script, you need to pass two arguments: Bucket name Number of last stored objects How to use it:   main.py:

 Jenkins – Active Choice: PostgreSQL – Return result of SELECT query

For a parameterized assembly with an image tag selection, you will need the Active Choices plugin Go to "Manage Jenkins"   Section "Manage Plugins"   Go to the "Available" tab and select "Active Choices" in the search. Install it. You also need plugins: Database PostgreSQL Database Create a "New Item" – "Pipeline", indicate that it … Continue reading " Jenkins – Active Choice: PostgreSQL – Return result of SELECT query"

AWS – S3 Allow Access for Organization Members

In order to allow read access from the S3 Bucket for all members included in the organization, the following policy must be applied to the S3 Bucket:   Where "stackset-lambdas" is the S3 Bucket name and "o-xxxxxxxxxx" is your Organization ID.