Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I am working on Talend CICD using Azure DevOps.
Note-
1- Initial Azure build steps are to download secure files like settings, maven-builder and license. All are correctly downloaded and referenced in next below steps.
2- Talend Commandline is running on localhost:8002 successfully.
3- Azure DevOps pipeline is running on windows self hosted agent and nexus server connnectivity is established from the agent.
4- Azure devops steps are referenced from Continuous Integration and Deployment using Azure DevOps | Talend Software Development Life Cycle Be...
5- Installed Talend Version is 7.3.1
Azure DevOps Build/Deployment pipeline steps:
Variables:
name: job_build
value: jobs/process/corpository/xxx
steps: - task: Maven@3 displayName: 'install File' inputs: mavenPomFile: 'job_name/poms/jobs/process/corpository/job_connectivity_0.2/pom.xml' goals: 'install:install-file' options: '--settings $(settings_xml.secureFilePath)' publishJUnitResults: false mavenOptions: '-Dfile=$(Agent.TempDirectory)/builder/builder-maven-plugin-7.3.8.jar -DpomFile=$(Agent.TempDirectory)/builder/builder-maven-plugin-7.3.8.pom'
steps: - task: Maven@3 displayName: 'Generate all poms' inputs: mavenPomFile: 'job_name/poms/jobs/process/corpository/job_connectivity_0.2/pom.xml' goals: 'org.talend.ci:builder-maven-plugin:7.3.8:generateAllPoms -X' options: '--settings $(settings_xml.secureFilePath)' publishJUnitResults: false mavenOptions: '-DforceUpdate=true -Dlicense.path=$(license.secureFilePath) -Dproduct.path=D:/Talend_studio/7.3.1/cmdline -Dp2Installer.path=D:/Talend_studio/7.3.1/.p2Installer -Dpatch.path=D:/Talend_studio/7.3.1/R202109.zip'
steps: - task: Maven@3 displayName: 'Maven deploy' inputs: mavenPomFile: 'job_name/poms/pom.xml' goals: 'clean deploy' options: '--settings $(settings_xml.secureFilePath) -Pnexus -pl $(job_build)' publishJUnitResults: false mavenOptions: '-DforceUpdate=true -Dlicense.path=$(license.secureFilePath) -Dproduct.path=D:/Talend_studio/7.3.1/cmdline -Dgeneration.type=local -DaltDeploymentRepository=releases::default::https://x.x.x.x:y/repository/releases/'
Main Error message of Failure-
Failed step is Maven deploy
Please check the used settings.xml below
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<localRepository>D:/Talend_studio/studio/cmdline/configuration/.m2/repository</localRepository>
<servers>
<server>
<id>nexus</id>
<username>admin</username>
<password>Talend123</password>
</server>
</servers>
<profiles>
<profile>
<id>central-nexus</id>
<repositories>
<repository>
<id>local-repo</id>
<url>D:/Talend_studio/studio/cmdline/configuration/.m2/repository</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>central</id>
<url>https://repo1.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>central-talend</id>
<name>central-talend</name>
<url>https://talend-update.talend.com/nexus/content/repositories/libraries/</url>
<layout>default</layout>
</repository>
<repository>
<id>nexus</id>
<url>https://x.x.x.x:y/repository/talend-custom-libs-release/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
</pluginRepository>
<pluginRepository>
<id>talend</id>
<name>central-talend</name>
<url>https://talend-update.talend.com/nexus/content/repositories/libraries/</url>
<layout>default</layout>
</pluginRepository>
<pluginRepository>
<id>nexus</id>
<url>https://x.x.x.x:y/repository/talend-custom-libs-release/</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>central-nexus</activeProfile>
</activeProfiles>
</settings>