We are using SAP piperpipeline. At the root level, application source code folder and mta.yaml file is present.
The pom.xml file is available under application folder.
I am trying to upload the .jar file generated in "Build" stage to nexus. The nexus upload should execute in "promote" stage of SAP piperpipeline.
in the config.yaml file (present at the root level), the below configurations have been added for nexus upload:
steps:
mtaBuild:
dockerImage: '<docker_image_name>'
nexusUpload:
url: '<nexus_url>'
format: 'maven'
groupId: '<group_id>'
mavenRepository: '<maven_repository>'
nexusCredentialsId: 'nexus_id'
version: 'nexus3'
verbose: true
After nexusupload, in reponse I am getting 204 code.
How can I upload the jar generated in build stage to nexus in promote stage?