English 中文(简体)
如何获得在jenkins被处决的炮弹
原标题:How to get a shell file executed in jenkins

Shell script is a pipeline job 1) where input file.json is on remote host . 2) output of the shell script is json and it should copied to remote host.

cur-u: -X POST -k -H 内容提要:文本/解释 - i http://<artiiciy_host>/artiiciy/api/search/aql

问题回答

Creating a stage within the Jenkins pipeline to execute the script would be a good option to achieve this requirement. For example:

stage( My script execution ){
  steps {
    sh "<script-content>"
        }
}

向产出服务器转交JSON文档的复印件或任何SCP操作都可以是同一文字的一部分。





相关问题
Copy artifact in Artifactory to a remote repository

I have the following setup: Development server for continuous build with Hudson, Maven and Artifactory up and running. I am able to build an artifact by Maven, and let Hudson deploy it to Artifactory....

Hudson plug-in not publishing all artifacts to Artifactory

I ve got a small Java project setup to build continuously through a Hudson server. I d like to publish the build artifacts to an Artifactory server as a post-build step so, naturally, I m using the ...

Use public maven repository with ivy

I have an ivy.xml containing <dependencies> <dependency org="commons-lang" name="commons-lang" rev="2.4"/> <dependency org="foo-bar" name="superwidgets" rev="1.5"/> </...

Why does Maven2 check for updates of stax-ex at every build?

Maven2 checks for updates of stax-ex at every build. And it s just checking this single dependency, all other dependencies are updated only once per day. Maven2 output: artifact org.jvnet.staxex:...

Maven fails to get SNAPSHOT builds from repository

Our internal repository (Artifactory) now contains both the stable builds as well as SNAPSHOT versions of our internal libraries. For stable builds there has never been a problem of downloading ...

热门标签