Skip to content

Commit 926e48e

Browse files
authored
Update azure pipeline (#18) and fix Element (#127) (#135)
* Update azure pipeline (#18) and fix Element (#127) * #18 Update pipeline: add version param to pack command * Test updated pack command (#18) * #18 Add version param to pack command
1 parent bafbeaf commit 926e48e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Aquality.Selenium/src/Aquality.Selenium/Elements/Element.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public RemoteWebElement GetElement(TimeSpan? timeout = null)
5151
}
5252
catch (NoSuchElementException ex)
5353
{
54-
Logger.Debug($"Page source:{Environment.NewLine}{Browser.Driver.PageSource}");
55-
throw ex;
54+
Logger.Debug($"Page source:{Environment.NewLine}{Browser.Driver.PageSource}", ex);
55+
throw;
5656
}
5757
}
5858

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ steps:
5353
inputs:
5454
command: 'pack'
5555
projects: Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.csproj
56-
arguments: -c $(buildConfiguration) -o $(Build.ArtifactStagingDirectory) --no-build
56+
arguments: -c $(buildConfiguration) -o $(Build.ArtifactStagingDirectory) /p:Version=$(GitVersion.NuGetVersion)
5757
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
5858

5959
- task: NuGetCommand@2

0 commit comments

Comments
 (0)