Код: Выделить всё
src/some_folder/somes_cript.py
но я получаю следующие ошибки:
Код: Выделить всё
token pattern '__\s*((?:(?!__)(?!\s*__).)*)\s*__'
transform pattern '\s*(.*)\(\s*((?:(?!\()(?!\s*\)).)*)\s*\)\s*'
replacing tokens in '/home/someuser/agent/_work/8/s/src/some_folder/somes_cript.py'
encoding 'ascii'
##[error]variable 'init' not found
init:
##[error]Error: name not supplied
Код: Выделить всё
parameters:
- name: targetDirectory
type: string
default: '$(System.DefaultWorkingDirectory)'
steps:
- task: qetza.replacetokens.replacetokens-task.replacetokens@6
name: replace_tokens
displayName: "Inject secrets"
inputs:
root: "${{ parameters.targetDirectory }}"
sources: |
**/src/some_folder/somes_cript.py
tokenPattern: 'doubleunderscores'
logLevel: 'debug'
missingVarLog: 'error'
Подробнее здесь: https://stackoverflow.com/questions/790 ... t-supplied