Комментарии:
@virenautomationtesting please make a video of how to parameterize the project level xml file and pass to POM file using .yml file. I am in need of this concept
yml file
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '11'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'clean install'
- task: Maven@3
displayName: 'Regression File'
inputs:
mavenPomFile: './pom.xml'
goals: 'clean install'
options: '-DsuiteXmlFile=./src/test/java/pat/practice/Practice_testNg.xml'
POM file:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M7</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
Azure is giving error:
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) on project dss: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test failed: testSuiteXmlFiles0 has null value
Thank you for this video this was my project requirement for now can you also make video on how to build/run pipeline externally from api and external website without creating any webhooks.
Ответить