cancel
Showing results for 
Search instead for 
Did you mean: 

Developing with SAP Extension Suite - CI/CD Pipeline

svesco
Explorer
0 Kudos

context: Learning Journey Developing with SAP Extension Suite

Enabling SAP Continuous Integration and Delivery

on my risk-management-job, the Release step failed with error:

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

my pipeline configuration 

 

###
 # This file configures the project "Piper" pipeline of your project.
 # For a reference of the configuration concept and available options, please have a look into its documentation. 
# 
# The documentation for the most recent pipeline version can always be found at:
# https://sap.github.io/jenkins-library/ 
# 
# This is a YAML-file. YAML is an indentation-sensitive file format. Please make sure to properly indent changes to it. 
### 

### General project setup
---
 general:
    pipeline: "sap-cloud-sdk" 
    buildTool: "mta"
    verbose: true
 stages:
    Build:
       mavenExecuteStaticCodeChecks: false
       npmExecuteLint: false
    Additional Unit Tests:
       npmExecuteScripts: false
       karmaExecuteTests: false
    Release:
       cloudFoundryDeploy: true
       tmsUpload: false
    steps:
      cloudFoundryDeploy:
        cloudFoundry: 
          apiEndpoint: "https://api.cf.us10.hana.ondemand.com"
          org: "a244dab4trial"
          space: "dev"
          credentialsId: "cfdeploy"
          appName: ""
        mtaDeployParameters: "-f --version-rule ALL"
      artifactPrepareVersion:
        versioningType: "cloud_noTag"

 

 
despite having set verbose: true in the general section of the pipeline configuration, still I read in the log

 

[2022-08-03T08:17:04.041Z] The following parameters were available to the step:
[2022-08-03T08:17:04.054Z] ***
[2022-08-03T08:17:04.066Z] *** to show step parameters, set verbose:true in general pipeline configuration
[2022-08-03T08:17:04.773Z] *** WARNING: this may reveal sensitive information. ***
[2022-08-03T08:17:04.785Z] ***

 

what could be the cause of the error?

what can I check?

thank you

Margit_Wagner
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @svesco 
We have received your request and are in the process of evaluating the problem, 
Please allow for a delay in our response
Kind regards
Margit

View Entire Topic
markushaug
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Jeff,

thanks for reaching out to us.

Could you please share your project via git?

 

BR,

Markus

Jeff_G
Associate
Associate
0 Kudos
Hi, After taking advice from others to try to get it to deploy with now errors, now the app is not even working in the BAS. Unless someone can look at this and help me figure out what is wrong with it, I feel like I may need to start the app over from scratch.
Jeff_G
Associate
Associate
0 Kudos
Hi Markus, Is there a way I can import the app from git at a state that is ready to be deployed to CF, successfully without errors? Then I can continue the exercises in the journey. Thanks, Jeff
markushaug
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi, yes you can switch to the respective solution git branch. Here's an overview of all branches: https://github.com/SAP-samples/btp-side-by-side-extension-learning-journey/branches/active?query=sol...
markushaug
Product and Topic Expert
Product and Topic Expert
0 Kudos
In the SAP Business Application Studio/VS Code you can switch the branch in the bottom left corner. Per default you should see "main" there. If you click on it, all branches will appear in a popup. Then choose the corresponding solution branch. Otherwise, you can also switch the branch via the git CLI.
Jeff_G
Associate
Associate
0 Kudos

I have started the journey all over from scratch. Now I am able to deploy the app on CF with no error, but when I try to test I get a "redirect" error:

Jeff_G_0-1675461700774.png

Is this correct in the .yaml file: 

Jeff_G_1-1675461843282.png

I also tried it with the blue line in the box above commented out and the last line uncommented.   That gave a "redirect" error also.  

Any ideas?  

Thanks, 

Jeff

 

markushaug
Product and Topic Expert
Product and Topic Expert
Could you please run "cf apps" and "cf routes" in your terminal to see the exact routes of your approuter instance?
Jeff_G
Associate
Associate
I was able to set the correct "redirect" url now. Thanks
0 Kudos
Hi Jeff_G, I have the same error how did you set the correct url?