Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. pipeline{
  2. agent any
  3. stages{
  4. stage('Preparation'){
  5. steps{
  6. sh 'echo Building...'
  7. sh 'aws configure set region us-east-2'
  8. sh 'aws configure set aws_access_key_id ...'
  9. sh 'aws configure set aws_secret_access_key ...'
  10. sh 'aws configure set output json'
  11. sh 'aws elb create-load-balancer --load-balancer-name ci-load-balancer --listeners "Protocol=HTTP,LoadBalancerPort=80,InstanceProtocol=HTTP,InstancePort=80" --availability-zones us-east-2a us-east-2b'
  12. sh 'aws autoscaling create-launch-configuration --launch-configuration-name ci-launch-config --instance-type t2.micro --image-id ami-34032e51'
  13. sh 'aws autoscaling create-auto-scaling-group --auto-scaling-group-name ci-auto-scaling-group --launch-configuration-name ci-launch-config --min-size 2 --max-size 2 --load-balancer-names ci-load-balancer --health-check-type ELB --health-check-grace-period 120 --availability-zones us-east-2a us-east-2b'
  14.  
  15. }
  16. }
  17. stage('Build'){
  18. steps{
  19. sh 'echo Building...'
  20. }
  21. }
  22. stage('Test'){
  23. steps{
  24. sh 'echo Testing...'
  25. }
  26. }
  27. stage('Deploy'){
  28. steps{
  29. sh 'echo Deploying...'
  30. }
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement