How to define runtime parameters in azure devops  using YAML CI/CD pipelines

How to define runtime parameters in azure devops using YAML CI/CD pipelines

Viren Automation Testing

1 год назад

6,262 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Smitha Patil
Smitha Patil - 31.08.2023 05:36

@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

Ответить
suraj ankale
suraj ankale - 26.01.2023 19:24

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.

Ответить