DevOps Automation

DevOps Automation

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  401: Unauthorized

    Posted Wed August 30, 2023 09:07 AM
      |   view attached
    Hi Team,
    
    We are getting an intermediate (401: Unauthorised) issue on deployment from Jenkins to UCD with the plugin used in UCD (7.0.5.0).
    
    IBM UrbanCode Deploy Pipeline (Build Steps) Plugin
    Version2.27.1134919
    
    IBM UrbanCode Deploy Plugin
    Version1.16.1107398
    
    
    ERROR: Deployment has failed due to IOException 401
    Error: 401: Unauthorized. You must be logged in or provide credentials.
    Finished: FAILURE



    ------------------------------
    Venkatakrishnan Rajaram
    ------------------------------



  • 2.  RE: 401: Unauthorized

    Posted Thu August 31, 2023 09:57 AM

    Have you configured your UCD integration inside of Jenkins correctly? Please have a test.

    In the other side, please try to use another UCD user with more privilege, to check whether it's caused by the UCD user permission inside of UCD.



    ------------------------------
    Fan Hu
    IBM
    Sydney
    ------------------------------



  • 3.  RE: 401: Unauthorized

    Posted Fri September 01, 2023 02:22 AM
      |   view attached

    Hi Fan Hu,

    Thanks,

    1, We are using admin credentials for all deployment 

    2, Integration is done properly all test connection works fine, it happens intermittently, Attached the sample pipeline for your reference

    Troubleshoot Steps followed on the issue time
    =====================================
    1, We do the API call to UCD directly that deploy successfully 
    2, We have a test Jenkins instance, we are able to deploy successfully on the issue time 

    Regards,

    Venkat



    ------------------------------
    Venkatakrishnan Rajaram
    ------------------------------

    Attachment(s)

    txt
    pipeline.txt   2 KB 1 version


  • 4.  RE: 401: Unauthorized

    Posted Mon September 04, 2023 02:39 AM

    If the issue happens "intermittently", I suggest to investigate the log in both side for that moments. Especially the log of UCD side will show something.



    ------------------------------
    Fan Hu
    IBM
    Sydney
    ------------------------------