File tree Expand file tree Collapse file tree 5 files changed +21
-3
lines changed
lib/interface/cli/commands/pipeline Expand file tree Collapse file tree 5 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM golang:alpine as go
3
3
RUN apk add --update ca-certificates git
4
4
RUN go get github.com/github/hub
5
5
6
- FROM node:9.2 .0-alpine
6
+ FROM node:9.10 .0-alpine
7
7
8
8
RUN apk add --update ca-certificates git curl jq py-pip bash && pip install yq
9
9
COPY --from=go /go/bin/hub /usr/local/bin/hub
Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ class RunBaseCommand {
25
25
const trigger = this . argv [ 'trigger' ] ;
26
26
const only = this . argv [ 'only' ] ;
27
27
const skip = this . argv [ 'skip' ] ;
28
+ if ( process . env . CF_BUILD_ID ) {
29
+ this . argv . annotation . push ( `cf_predecessor=${ process . env . CF_BUILD_ID } ` ) ;
30
+ }
31
+ const annotations = prepareKeyValueFromCLIEnvOption ( this . argv . annotation ) ;
32
+
33
+
28
34
29
35
const executionRequestTemplate = {
30
36
pipelineName,
@@ -38,7 +44,9 @@ class RunBaseCommand {
38
44
noCfCache,
39
45
trigger,
40
46
only,
41
- skip
47
+ skip,
48
+ annotations,
49
+
42
50
} ,
43
51
} ;
44
52
if ( variablesFromFile ) {
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ function _buildBody(data) {
27
27
body . options . resetVolume = data . resetVolume ;
28
28
}
29
29
30
+ if ( data . annotations ) {
31
+ body . annotations = data . annotations ;
32
+ }
33
+
30
34
if ( data . sha ) {
31
35
body . sha = data . sha ;
32
36
}
Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ const run = new Command({
43
43
alias : 'nc' ,
44
44
default : false ,
45
45
} )
46
+ . option ( 'annotation' , {
47
+ describe : 'Add annotations to created build' ,
48
+ default : [ ] ,
49
+ alias : 'a' ,
50
+
51
+ } )
46
52
. option ( 'enable-notifications' , {
47
53
describe : 'Report notifications about pipeline execution' ,
48
54
alias : 'en' ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.29 .0" ,
3
+ "version" : " 0.30 .0" ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments