Search code examples
jetcodeship

Debugging Codeship build that runs fine with Jet


How should I debug a Codeship build that runs successfully with jet steps locally? I make sure to run it on a fresh checkout, so it starts in the same state as Codeship. My process is:

  1. Make fresh clone of repo
  2. Call jet steps --push --tag master --no-cache (steps will only push for master)

Running in Codeship, the same master continues to fail

Build Error: No source files were specified
2017-08-07T13:25:59.136Z my-image build/pull had an error

The docs say to use jet steps for debugging, but what should one do when this isn't helpful?


Solution

  • The answer is that I used false assumptions.

    The truth of the matter is that running local with jets and remotely on Codeship are very different processes. Success locally does not portend success on Codeship.

    • jet will be successful, regardless of what volume configs you pass
    • jet does not run individual steps in isolated containers, Codeship does
    • jet will share state between steps and services, Codeship won't

    Further, if you need state between steps and services, very carefully read the footnotes on the Codeship volumes docs.