Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Version 32

Compare
Choose a tag to compare
@stippi2 stippi2 released this 14 Apr 15:20
· 74 commits to master since this release

Release v32

New Functionality

  • A custom linting script named ci-lint is executed as part of the Lint stage if it is defined
    in the 'scripts' section of the package.json file(s) of the project. In the absence of this script,
    the Lint stage now also supports non-SAPUI5 Javascript/Typescript projects by executing ESLint with a
    provided default configuration. See the documentation for more details.
  • The stage Artifact Deployment can now also deploy npm build artifacts. It uploads everything which is
    not excluded in .npmignore via npm publish. See the documentation for more details.
  • Also for the stage Artifact Deployment, the requirements for Maven projects have been relaxed such that
    any multi-module projects are now supported.

Improvements

  • To help you avoid errors in the pipeline configuration file .pipeline/config.yml, it is validated against a schema file starting with v29. Any findings are now visualized in the Jenkins UI:
    config-schema-validation-warnings
    Please note that the validation can never be 100% complete and may therefore show wrong findings and/or miss some problems.
  • To offer more control over which rules are used to run the static code checks for maven with pmd and spotbugs, the pipeline does not inject a fixed set of rules anymore.
    Instead the user can configure which rules are executed in the plugins section in the pom.xml of the project.
    All configuration options for the stage staticCodeChecks have been removed.
    Some new parameters were introduced with the new step mavenExecuteStaticCodeChecks.
    Please migrate any existing stage configuration into the corresponding configuration in your pom.xml or step configuration.
    Please find below an example how you can can configure and continue to use the pmd rules provided by the SAP Cloud SDK.
<build>
    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <configuration>
                    <rulesets>
                        <ruleset>rulesets/cloud-sdk-qualities.xml</ruleset>
                        <ruleset>rulesets/java/maven-pmd-plugin-default.xml</ruleset>
                    </rulesets>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>com.sap.cloud.sdk.quality</groupId>
                        <artifactId>pmd-rules</artifactId>
                        <version>3.18.0</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </pluginManagement>
    ...
</build>