Taras Velykyy
Taras Velykyy

Reputation: 1801

Create file with latest git commit info during Bamboo build

I need to create a file with latest git commit info. I've added a new Command to Bamboo build cycle. See screenshotenter image description here

When I run a job, the error occurs:

fatal: ambiguous argument '>': unknown revision or path not in the working tree.

I think I need somehow to escape this command, but don't know how. Can somebody help with this issue?

Upvotes: 2

Views: 1080

Answers (1)

VonC
VonC

Reputation: 1327014

If the redirection isn't supported, you could:

  • wrap the git log -n 1 > version.txt in a script and
  • call that script in your Command

Upvotes: 1

Related Questions