SAP-archive / cloud-s4-sdk-pipeline

The Cloud SDK pipeline uses the Cloud SDK continuous delivery server for building, checking, and deploying extension applications. Projects based on the SAP Cloud SDK archetype will automatically use this pipeline.
Apache License 2.0
65 stars 25 forks source link

Skipping stage #23

Closed s33kman closed 4 years ago

s33kman commented 5 years ago

as I can see the conditional checks if the stage will be executed:

image

Is there a setting which can be used for skipping a certain stage (For example in the pipeline_config.yml)?

fwilhe commented 5 years ago

Hi @bullrox,

can you elaborate a little more on your concrete requirement? I might be able to provide you a better answer depending on what you're trying to achieve.

Which stage would you like to enable/disable in which conditions (and why)?

In general, you can inspect how it is decided if a stage is run in initStageSkipConfiguration.

Kind regards

Florian

s33kman commented 5 years ago

Hi @fwilhe ,

I would like to skip the 'Quality Checks' stage as it throws a Connection Timeout Exception which causes an unstable pipeline run.

image

Thus I am wondering if I can configure 'pipeline_config.yml' or any other config file in a way to skip the execution of certain pipeline stages.

fwilhe commented 5 years ago

Hi @bullrox, I'm not aware of any issues with api.sap.com as of now. Do you observe this issue longer?

We don't have an option to skip the quality checks of the pipeline as we consider them to be important. I understand that it is bad if the pipeline fails because of availability issues, but my guess would be that it should work if you retry. At least my quick check showed that api.sap.com responds as desired.

fwilhe commented 5 years ago

Hi @bullrox, do you still experience issues with that matter?

daniel-kurzynski commented 4 years ago

With the latest release you can either skip individual quality checks (https://github.com/SAP/cloud-s4-sdk-pipeline/blob/master/configuration.md#s4sdkqualitychecks -> disabledChecks) or use extensibility to configure which stages should be executed: https://sap.github.io/jenkins-library/extensibility/