File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
src/Cake.AzureDevOps/Pipelines Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,26 @@ public AzureDevOpsBuildResult? Result
292
292
}
293
293
}
294
294
295
+ /// <summary>
296
+ /// Gets the finish time of the build.
297
+ /// Returns <c>null</c> if no build could be found and
298
+ /// <see cref="AzureDevOpsBuildSettings.ThrowExceptionIfBuildCouldNotBeFound"/> is set to <c>false</c>.
299
+ /// </summary>
300
+ /// <exception cref="AzureDevOpsBuildNotFoundException">If build could not be found and
301
+ /// <see cref="AzureDevOpsBuildSettings.ThrowExceptionIfBuildCouldNotBeFound"/> is set to <c>true</c>.</exception>
302
+ public DateTime ? FinishTime
303
+ {
304
+ get
305
+ {
306
+ if ( ! this . ValidateBuild ( ) )
307
+ {
308
+ return null ;
309
+ }
310
+
311
+ return this . build . FinishTime ;
312
+ }
313
+ }
314
+
295
315
/// <summary>
296
316
/// Gets the parameters passed to the build.
297
317
/// Returns an empty dictionary if no build could be found and
You can’t perform that action at this time.
0 commit comments