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.

41 lines
1.0 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 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: http://www-us.apache.org/dist/lucene/java/5.5.4/lucene-5.5.4-src.tgz
  12. filename: lucene-5.5.4-src.tgz
  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. jobs:
  19. - name: run-and-get-files
  20. plan:
  21. - get: my-file-with-last-modified-info
  22. - get: my-file-without-last-modified-info
  23. - task: run-and-get-file
  24. config:
  25. platform: linux
  26. image_resource:
  27. type: docker-image
  28. source:
  29. repository: ubuntu
  30. tag: "latest"
  31. inputs:
  32. - name: my-file-with-last-modified-info
  33. - name: my-file-without-last-modified-info
  34. run:
  35. path: sh
  36. args:
  37. - -exc
  38. - |
  39. find .