Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested directories not supported #3

Open
NecatiMeral opened this issue Aug 13, 2021 · 2 comments
Open

Nested directories not supported #3

NecatiMeral opened this issue Aug 13, 2021 · 2 comments

Comments

@NecatiMeral
Copy link

Hi everyone,

when using the tokenizer to apply tokens for a directory structure, it doesn't handle directories well.

My structure consists of the following directories and files:

consul/deploy
-> /config
->     /server1.json
->     /server2.json
->     ...
-> docker-compose.yml

I want to replace tokens in every file inside the deploy directory.
I've tried several ways to achieve this:

Method 1

    - task: Tokenizer@0
      inputs:
        sourcePath: 'consul/deploy/'
        sourceFilesPattern: '**'
        tokenDataSource: 'environmentVariables'

Result:

Checking for tokens in /azp/agent/_work/20/s/consul/deploy
##[error]EISDIR: illegal operation on a directory, read

Method 2

    - task: Tokenizer@0
      inputs:
        sourcePath: 'consul/deploy/'
        sourceFilesPattern: '*.json|*.yml'
        tokenDataSource: 'environmentVariables'

Result:

##[warning]No files found for pattern *.json|*.yml
@chrisjaimon2012
Copy link

Any updates on if the tokenizer operation will be supported on directories?

@NecatiMeral
Copy link
Author

I've switched to qetza.replacetokens because of this requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants