File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,11 @@ func main() {
146146 Usage : "build number" ,
147147 EnvVar : "DRONE_BUILD_NUMBER" ,
148148 },
149+ cli.IntFlag {
150+ Name : "build.parent" ,
151+ Usage : "build parent" ,
152+ EnvVar : "DRONE_BUILD_PARENT" ,
153+ },
149154 cli.StringFlag {
150155 Name : "build.status" ,
151156 Usage : "build status" ,
@@ -202,6 +207,7 @@ func run(c *cli.Context) error {
202207 Build : Build {
203208 Tag : c .String ("build.tag" ),
204209 Number : c .Int ("build.number" ),
210+ Parent : c .Int ("build.parent" ),
205211 Event : c .String ("build.event" ),
206212 Status : c .String ("build.status" ),
207213 Commit : c .String ("commit.sha" ),
Original file line number Diff line number Diff line change 1818 Tag string
1919 Event string
2020 Number int
21+ Parent int
2122 Commit string
2223 Ref string
2324 Branch string
You can’t perform that action at this time.
0 commit comments