简体   繁体   中英

How to use JFrog cli in cake script

We are using cake script as part of our build process. Please let me know how can I use JFrog cli command in cake script.

https://www.jfrog.com/confluence/display/CLI/JFrog+CLI

jf rt u

You can use any of the Command ( https://cakebuild.net/dsl/command/ ) or StartProcess ( https://cakebuild.net/dsl/process/ ) aliases. Command aliases make use ofTool resolution provided by Cake.

For example:

Command(
    new []{ "jf", "jf.exe"},
    "rt u"
);

See also this blog post for more examples: https://cakebuild.net/blog/2022/10/cake-v2.3.0-released#command-aliases

If the tool is not available on the machine Cake provides some ways to install tools. See Installing Tools for details.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM