parameters:
- name: componentName
  type: string
  default: ''
- name: scriptDir
  type: string
  default: '.'
- name: scriptExecutable
  type: string
  default: './install.sh'
- name: scriptParameters
  type: string
  default: ''

steps:
- task: Bash@3
  displayName: '${{ parameters.componentName }} Building via script'
  continueOnError: true
  inputs:
    targetType: inline
    script: ${{ parameters.scriptExecutable }} ${{ parameters.scriptParameters }}
    workingDirectory: ${{ parameters.scriptDir }}
