SAP / jenkins-library

Jenkins shared library for Continuous Delivery pipelines.
https://www.project-piper.io
Apache License 2.0
777 stars 584 forks source link

Failed to login to Cloud Foundry: Parameters missing. Please provide the Cloud Foundry Endpoint, Org, Space, Username and Password #3306

Closed i535489 closed 2 years ago

i535489 commented 2 years ago

Hi,

Since 04/11 we are not able to deploy our code on production with the master branch of piper-lib. We are currently stuck on 1.136.0 for piper-lib and v1.177.0 for piper-lib-os.

We already open an issue here : **** This issue have been closed with comment : "cloudFoundryDeploy step is part of https://github.com/SAP/jenkins-library Please open an issue on https://github.com/SAP/jenkins-library and refer to marcusholl in case you identify any additional issue not mentioned so far."

We try different options and changes in our config without success.

Last attempt lead to this error:

11:29:32  The error was:
11:29:32  ***
11:29:32  hudson.AbortException: [cloudFoundryDeploy] Step execution failed (category: undefined). Error: Failed to login to Cloud Foundry: Parameters missing. Please provide the Cloud Foundry Endpoint, Org, Space, Username and Password
11:29:32  ***

But in the logs before all the information are there (i replaced info by *) : `11:28:18 info cloudFoundryDeploy - General parameters: deployTool='mtaDeployPlugin', deployType='standard', cfApiEndpoint='https://****.sap.hana.ondemand.com', cfOrg='J*1', cfSpace='d***1'`

Here my Jenkins file:

@Library('piper-lib') _

node(){
  stage('Prepare')   {
    deleteDir()
    checkout scm
    setupPipelineEnvironment script:this
  }

  stage('Build')   {
    mtaBuild(
      script: this,
      dockerImage: 'j*****4'
    )
  }

  stage('Deploy')   {
    cloudFoundryDeploy(
      verbose: true,
      script: this,
      useGoStep: false,
      dockerImage: 'cf-cli-mta-plugin.int.repositories.cloud.sap/cf-cli-mta-plugin/cf-cli-mta-plugin',
      apiEndpoint: "${apiEndpoint}",
      org: "${org}",
      space: "${space}",
      deployTool:'mtaDeployPlugin',
      deployType: 'standard',
      mtaExtensionCredentials: ['smtp-user-placeholder':'j***r','smtp-password-placeholder':'j***']
    )
  }
}

The issue is the same without userGoStep and dockerImage.

and my config.yml:

### General project setup
general:
  buildTool: 'mta'
  collectTelemetryData: false

### Step-specific configuration
steps:
  mtaBuild:
    buildTarget: 'CF' 
  cloudFoundryDeploy:
    credentialsId: 'CF_CREDENTIALSID'    
    cloudFoundry:  
      mtaExtensionDescriptor: 'mta-mail-service-credentials.mtaext'

@marcusholl @OliverNocon we already exchanged by mail , the issue is still there and i followed all documentation and guideline.

Thanks for your support. Best regards, Nicolas

github-actions[bot] commented 2 years ago

Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.

github-actions[bot] commented 2 years ago

Issue got stale and no further activity happened. It has automatically been closed. Please re-open in case you still consider it relevant.

veeru004 commented 2 years ago

I think Issue is not resolved yet