Skip to content

Add cwd option to run #349

Closed
Closed

Description

@ndarilek

I'd like to do something like:

  - task: getVersion
    config:
      platform: linux
      image_resource:
        type: docker-image
        source: {repository: ubuntu, tag: 14.04}
      run:
        path: git
        args: [describe --tags >version]
        cwd: myrepo

Not sure about that syntax but hope it conveys the idea. I have a ton of tasks that are either a line or two but need to be run in the git repository, and it'd be annoying to clutter the repo with a bunch of tiny shell scripts just to ensure that these commands are run in the right context.

Thanks.

Activity

  1. concourse-bot commented on Apr 2, 2016

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. concourse-bot commented on Apr 10, 2016

    @concourse-bot

    Hello again!

    All stories related to this issue have been accepted, so I'm going to automatically close this issue.

    At the time of writing, the following stories have been accepted:

    If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary!

  3. vito commented on Apr 10, 2016

    @vito
    Contributor
  4. added a commit that references this issue on Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions