Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pretty logging for drone exec #51

Merged
merged 1 commit into from Jun 28, 2017
Merged

Conversation

jmccann
Copy link
Contributor

@jmccann jmccann commented Jun 28, 2017

Basically stole and modified https://github.com/cncd/pipeline/blob/master/pipeline/rpc/line.go#L49 to make drone exec pretty again like it was in Drone 0.5

Example .drone.yml

workspace:
  base: /drone

pipeline:
  first:
    image: ubuntu:16.04
    commands:
      - touch /drone/helloworld
      - sleep 10
      - echo counted?

  second:
    image: ubuntu:16.04
    commands:
      - echo "hello"
      - ls /drone/helloworld

Example output with changes:

$ ./drone exec
[first:L0:0s] + touch /drone/helloworld
[first:L1:0s] + sleep 10
[first:L2:10s] + echo counted?
[first:L3:10s] counted?
[second:L0:0s] + echo "hello"
[second:L1:0s] hello
[second:L2:0s] + ls /drone/helloworld
[second:L3:0s] ls: cannot access '/drone/helloworld': No such file or directory
2017/06/28 14:23:33 drone_step_1 : exit code 2

@bradrydzewski bradrydzewski merged commit 663d48d into harness:master Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants