diff options
author | Philip Paquette <pcpaquette@gmail.com> | 2018-09-26 14:54:13 -0400 |
---|---|---|
committer | Philip Paquette <pcpaquette@gmail.com> | 2019-04-18 11:15:19 -0400 |
commit | 41a8e7633a2681bbeffc9d7379cf13da6d2fcae4 (patch) | |
tree | 680e927ef9a874566f68604700075b673a6411b5 /.jenkins/jenkins-agent.json | |
parent | 7db5011d67a98c05e69d29c5f2ff31314a82bde4 (diff) |
Integrating with Jenkins for PR reviews
Diffstat (limited to '.jenkins/jenkins-agent.json')
-rw-r--r-- | .jenkins/jenkins-agent.json | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.jenkins/jenkins-agent.json b/.jenkins/jenkins-agent.json new file mode 100644 index 0000000..a554e4b --- /dev/null +++ b/.jenkins/jenkins-agent.json @@ -0,0 +1,25 @@ +{ + "builders": [ + { + "type": "googlecompute", + "project_id": "ppaquette-diplomacy", + "source_image_family": "ubuntu-1604-lts", + "source_image_project_id": "ubuntu-os-cloud", + "zone": "northamerica-northeast1-a", + "disk_size": "10", + "image_name": "jenkins-slave-{{timestamp}}", + "image_family": "jenkins-slave", + "ssh_username": "ubuntu" + } + ], + "provisioners": [ + { + "type": "shell", + "inline": ["sudo apt-get update -y", + "sudo apt-get upgrade -y", + "sudo apt-get install -y default-jdk git wget build-essential zip bzip2", + "sudo apt-get purge -y unattended-upgrades", + "sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/10periodic"] + } + ] +} |