mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
67 lines
2.1 KiB
YAML
67 lines
2.1 KiB
YAML
|
metadata:
|
||
|
name: pythonBuild
|
||
|
description: Step build a python project
|
||
|
longDescription: Step build python project with using test Vault credentials
|
||
|
spec:
|
||
|
inputs:
|
||
|
params:
|
||
|
- name: buildFlags
|
||
|
type: "[]string"
|
||
|
description: Defines list of build flags to be used.
|
||
|
scope:
|
||
|
- PARAMETERS
|
||
|
- STAGES
|
||
|
- STEPS
|
||
|
- name: createBOM
|
||
|
type: bool
|
||
|
description: Creates the bill of materials (BOM) using CycloneDX plugin.
|
||
|
scope:
|
||
|
- GENERAL
|
||
|
- STEPS
|
||
|
- STAGES
|
||
|
- PARAMETERS
|
||
|
default: false
|
||
|
- name: publish
|
||
|
type: bool
|
||
|
description: Configures the build to publish artifacts to a repository.
|
||
|
scope:
|
||
|
- STEPS
|
||
|
- STAGES
|
||
|
- PARAMETERS
|
||
|
- name: targetRepositoryPassword
|
||
|
description: "Password for the target repository where the compiled binaries shall be uploaded - typically provided by the CI/CD environment."
|
||
|
type: string
|
||
|
scope:
|
||
|
- PARAMETERS
|
||
|
- STAGES
|
||
|
- STEPS
|
||
|
secret: true
|
||
|
resourceRef:
|
||
|
- name: commonPipelineEnvironment
|
||
|
param: custom/repositoryPassword
|
||
|
- name: targetRepositoryUser
|
||
|
description: "Username for the target repository where the compiled binaries shall be uploaded - typically provided by the CI/CD environment."
|
||
|
type: string
|
||
|
scope:
|
||
|
- PARAMETERS
|
||
|
- STAGES
|
||
|
- STEPS
|
||
|
secret: true
|
||
|
resourceRef:
|
||
|
- name: commonPipelineEnvironment
|
||
|
param: custom/repositoryUsername
|
||
|
- name: targetRepositoryURL
|
||
|
description: "URL of the target repository where the compiled binaries shall be uploaded - typically provided by the CI/CD environment."
|
||
|
type: string
|
||
|
scope:
|
||
|
- PARAMETERS
|
||
|
- STAGES
|
||
|
- STEPS
|
||
|
resourceRef:
|
||
|
- name: commonPipelineEnvironment
|
||
|
param: custom/repositoryUrl
|
||
|
containers:
|
||
|
- name: python
|
||
|
image: python:3.9
|
||
|
workingDir: /home/node
|