How can I download last artifact in Artifactory?

后端 未结 3 1762

I have some artifacts in Artifactory (OpenSource):

I can download an artifact from using jfrog CLI:

jfrog rt config --user=         


        
3条回答
  •  情深已故
    2021-01-13 03:43

    If you wish to do it from a Jenkins groovy file, you could use:

        def downloadSpec = """{
                "files": [
                    {
                        "pattern": pattern,
                        "target": "",
                        "flat" : "true",
                        "sortBy": ["name"],
                        "sortOrder": "desc",
                        "limit": 1
                    }
                ]
            }"""
    

提交回复
热议问题