github.com/jaylevin/jenkins-library@v1.230.4/vars/mavenBuild.groovy (about)

     1  import com.sap.piper.BuildTool
     2  import com.sap.piper.DownloadCacheUtils
     3  import groovy.transform.Field
     4  
     5  import static com.sap.piper.Prerequisites.checkScript
     6  
     7  @Field String METADATA_FILE = 'metadata/mavenBuild.yaml'
     8  @Field String STEP_NAME = getClass().getName()
     9  
    10  void call(Map parameters = [:]) {
    11      List credentials = [[type: 'token', id: 'altDeploymentRepositoryPasswordId', env: ['PIPER_altDeploymentRepositoryPassword']]]
    12      final script = checkScript(this, parameters) ?: this
    13      parameters = DownloadCacheUtils.injectDownloadCacheInParameters(script, parameters, BuildTool.MAVEN)
    14  
    15      piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
    16  }