fix
This commit is contained in:
@@ -39,6 +39,7 @@ spec:
|
||||
echo -n ${ts} | tee $(results.timestamp.path)
|
||||
- name: get-commitcount
|
||||
image: $(params.toolbox-image)
|
||||
workingDir: $(workspaces.source.path)
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
cc=`git rev-list --count HEAD`
|
||||
@@ -52,4 +53,7 @@ spec:
|
||||
cc=`cat $(results.commitcount.path)`
|
||||
buildId="$(params.branch)-${cc}.${ts}"
|
||||
echo -n "Build ID: "
|
||||
echo -n ${buildId} | tee $(results.build-id.path)
|
||||
echo -n ${buildId} | tee $(results.build-id.path)
|
||||
workspaces:
|
||||
- name: source
|
||||
description: A workspace that contains the fetched git repository to create a version for.
|
||||
Reference in New Issue
Block a user