Skip to content

burukuru/jenkins-update-ec2-ami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

jenkins-update-ec2-ami

In a Jenkinsfile:

node {
 sh './packer build -color=false jenkins_agent_ami.json'
 sh 'JENKINS_AUTH_USER="packer" JENKINS_AUTH_PASSWORD="SECRETPASSWORD" EC2_CLOUD_INSTANCE=ec2 AMI_PROFILE_NAME="aws-jenkins-agent" AWS_REGION="eu-west-1" python jenkins-update-ec2-ami.py'
}

EC2_CLOUD_INSTANCE is the name of the Amazong EC2 cloud in the plugin (as seen in the screenshot below). AMI_PROFILE_NAME is the AMI’s “Description” in the EC2 plugin.

Detailed instructions: https://blog.grakn.ai/automated-aws-ami-builds-for-jenkins-agents-with-packer-e569630b1f8e

Copied from https://gist.github.com/marvinpinto/a6c9b5119d418a65d489
Originated from jenkinsci/ec2-plugin#154

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages