Upload jars or Bundle to Nexus using Jenkins Job and some repository are not uploading the jars or bundle to Nexus

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Upload jars or Bundle to Nexus using Jenkins Job and some repository are not uploading the jars or bundle to Nexus

SARDARNI NK
Hi All,

I have a Jenkins job which takes multiple parameters,  one of the Parameter we have the Name: repository  with choice (xxx_snapshots_xxx, xxx_releases_xxx, xxx_thirdParty_xxx )
 which basically repository to upload.

In Jenkins Job, we have Build Environment step with conditional steps(multiple) for  (xxx_snapshots_xxx, xxx_releases_xxx, xxx_thirdParty_xxx )

  -->conditional steps(multiple) in Jenkins Job

steps we have Inject environment variable in that have 2 section 
   Properties File Path
   Properties Content :- url=https://xxx.xxx.xxx/nexus/xxxx/repositories_xxx/snapshots_xxx
repoID=snapshots


xxx_snapshots_xxx, xxx_releases_xxx,  uploads work fine but not xxx_thirdParty_xxx.


In execute shell we have 

mvn -e deploy:deploy-file \

    -Dfile=file  \

    -DgroupId=${groupid} \

    -DartifactId=${artifactid} \

    -Dversion=${version} \

    -Dpackaging=${extension} \

    -Durl=${url} \

    ${optional_classifier} \

    -DrepositoryId=${repoID}


if the condition doesn't meet which will return ${classifier}



If condition met which will return

optional_classifier=-Dclassifier=${classifier}


Jenkins Job is  Not uploading  xxx_thirdParty_xxx  to nexus.


Could anyone please let me know what might be the problem.


Thanks,

Nav






   
         




--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/68cb767a-9b3f-4ba8-a1ad-f8603365c85f%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Upload jars or Bundle to Nexus using Jenkins Job and some repository are not uploading the jars or bundle to Nexus

Yilmaz Gunduzalp
Do you get any errors? It could be a ssl certificate issue

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a96af893-d482-461e-bafb-a732674c049e%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Upload jars or Bundle to Nexus using Jenkins Job and some repository are not uploading the jars or bundle to Nexus

SARDARNI NK
Thank you Gunduzalp!!

I was getting an error on Jenkins Build  Return code is: 401, ReasonPhrase: Unauthorized.


Thanks,
Nav

On Wednesday, November 13, 2019 at 4:32:06 PM UTC-5, Yilmaz Gunduzalp wrote:
Do you get any errors? It could be a ssl certificate issue

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/268c1f5a-52ad-4b15-9e3f-8130ce2992ee%40googlegroups.com.