File contents resolver
The file contents resolver reads a file and uses the file contents as a parameter value.

Properties

Here are the properties of the file contents resolver:
Key
Required
Type
Description
resolver
yes
string
Resolver name, this must be file-contents.
file
yes
string
Path to file. Can be an absolute path or a path relative to the project directory.
confidential
no
boolean
Conceal the resolved parameter value from logs, defaults to false
immutable
no
boolean
Mark the parameter as immutable, defaults to false

Examples

Use contents of the /tmp/commit.txt file as parameter value:
1
parameters:
2
CommitHash:
3
resolver: file-contents
4
file: /tmp/commit.txt
Copied!
Use a relative file path:
1
parameters:
2
Code:
3
resolver: file-contents
4
file: code.txt
Copied!

Last modified 16d ago
Export as PDF
Copy link