Commit Graph

8 Commits

Author SHA1 Message Date
R Tyler Croy f8dc3af95e Update the cargo versions
Fixes #64
2021-03-03 22:04:25 -08:00
R Tyler Croy 4e9c851dd6 Refactor some dependencies to allow jumping to async-std 1.9.0
There are some good stabilizations and other work in this release that I want.

Also, my Cargo.tomls have been too strict, need to start relaxing that
2021-03-03 22:04:25 -08:00
R Tyler Croy ee2510ed6f Refactor the source tree to separate local executables (CLIs) and models a bit more
This should make the compile cycles a little bit more sensible when just working
on the CLI components of the agent, for example.
2020-11-26 10:40:37 -08:00
R Tyler Croy 1b6ebdd3db Work in progress on the git step
See #32
2020-11-15 14:39:00 -08:00
R Tyler Croy f7c845e374 Upgrade to async-std 1.7.0
WOOOOO
2020-11-04 13:05:55 -08:00
R Tyler Croy a39c6f3ffd cargo fmt 2020-11-03 15:22:47 -08:00
R Tyler Croy 101ef3b7cc Refactor some common code out into the "models" module for sharing
This will be shared between the parser and the agent so that everybody has the
same views on what the pipeline data structure is
2020-11-02 21:35:59 -08:00
R Tyler Croy 56ffbaadb2 Implement the corresponding `unarchive` step to grab a pipeline's artifacts later on
This can be used to grab an archived artifact on another agent, for example.

Tested with:

  ---
  uuid: '2265b5d0-1f70-46de-bf50-f1050e9fac9a'

  contexts:
    - name: 'Prep'
      uuid: '3ce1f6fb-79ca-4564-a47e-98265f53ef7f'
      environment:
        CLOUD: 'yes'

    - name: 'Build'
      uuid: '5e9d4943-33e5-4945-8a97-a11421cb4b11'

  steps:
    - symbol: sh
      uuid: '2265b5d0-1f70-46de-bf50-f1050e9fac9a'
      context: '5e9d4943-33e5-4945-8a97-a11421cb4b11'
      parameters:
        script: 'echo "hello" > hello.log'

    - symbol: archive
      context: '5e9d4943-33e5-4945-8a97-a11421cb4b11'
      uuid: 'd479e450-9ada-4127-84ca-e0576d0c0c98'
      parameters:
        artifacts: 'hello.log'

    - symbol: sh
      uuid: '5599cffb-f23a-4e0f-a0b9-f74654641b2b'
      context: '3ce1f6fb-79ca-4564-a47e-98265f53ef7f'
      parameters:
        script: 'rm -f hello.log'

    - symbol: unarchive
      uuid: '2265b5d0-1f70-46de-bf50-f1050e9fac9a'
      context: '5e9d4943-33e5-4945-8a97-a11421cb4b11'
      parameters:
        name: 'hello.log'

    - symbol: sh
      uuid: '7f7ec29b-ad62-4fba-9c5f-db7a49a2d658'
      context: '3ce1f6fb-79ca-4564-a47e-98265f53ef7f'
      parameters:
        script: 'cat hello.log'
2020-11-01 15:52:41 -08:00