You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.4 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. resource_types:
  2. - name: file-url
  3. type: docker-image
  4. source:
  5. repository: pivotalservices/concourse-curl-resource
  6. tag: latest
  7. resources:
  8. - name: my-file-with-last-modified-info
  9. type: file-url
  10. source:
  11. url: https://s3-us-west-1.amazonaws.com/lsilva-bpws/PCF_usage/pcf-sandbox-usage-from-2016-09-01-to-2016-09-30_1475771124.json
  12. filename: pcf-sandbox-usage.json
  13. - name: my-file-without-last-modified-info
  14. type: file-url
  15. source:
  16. url: https://raw.githubusercontent.com/pivotalservices/concourse-curl-resource/master/test/data/pivotal-1.0.0.txt
  17. filename: pivotal-1.0.0.txt
  18. - name: my-file-requiring-auth
  19. type: file-url
  20. source:
  21. url: https://auth-demo.aerobatic.io/protected-standard
  22. filename: auth-request-response.txt
  23. username: aerobatic
  24. password: aerobatic
  25. jobs:
  26. - name: run-and-get-files
  27. plan:
  28. - get: my-file-with-last-modified-info
  29. - get: my-file-without-last-modified-info
  30. - get: my-file-requiring-auth
  31. - task: run-and-get-file
  32. config:
  33. platform: linux
  34. image_resource:
  35. type: docker-image
  36. source:
  37. repository: ubuntu
  38. tag: "latest"
  39. inputs:
  40. - name: my-file-with-last-modified-info
  41. - name: my-file-without-last-modified-info
  42. - name: my-file-requiring-auth
  43. run:
  44. path: sh
  45. args:
  46. - -exc
  47. - |
  48. find .
  49. cat ./my-file-requiring-auth/auth-request-response.txt | grep expecting