Can we write user define functions in azure pipeline yaml file ?
That means I want to perform a specific task by using a function in any language like (PYTHON,SHELL,PERL etc), which should return the value after the execution of the code.
Yes you can, using Command Line Task :
- script: # script path or inline
workingDirectory: #
displayName: #
failOnStderr: #
env: { string: string } # mapping of environment variables to add
@Geoffroy
Actually I don't want to do this through CMD task.
Lets suppose I have written one function and stored it in some library and I want to call that function as a Azure tasks.
for example:
I have "function1" written in some file like :
function1 (x y) {
return 1 ;
}
and I want to call function1 as a "Azure task"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.