Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Curl 詹金斯双引号_Curl_Jenkins_Sparql_Rdf_Jenkins Pipeline - Fatal编程技术网

Curl 詹金斯双引号

Curl 詹金斯双引号,curl,jenkins,sparql,rdf,jenkins-pipeline,Curl,Jenkins,Sparql,Rdf,Jenkins Pipeline,您好,我正在与Jenkins创建管道,我有以下文档: def CompleteGraphUri = "http://172.16.0.81:58080/blazegraph/namespace/replicate- mishel/sparql?context-uri=http://lod.eurohelp.es/dataset/parkings" def RDFParkings = "shacl/parkings.ttl" node { stage('Upload RDF to blaze

您好,我正在与Jenkins创建管道,我有以下文档:

def CompleteGraphUri = "http://172.16.0.81:58080/blazegraph/namespace/replicate- mishel/sparql?context-uri=http://lod.eurohelp.es/dataset/parkings"

def RDFParkings = "shacl/parkings.ttl"


node { stage('Upload RDF to blazegraph') {  
         sh 'curl -X POST -H Content-Type:text/turtle --data-binary @' + RDFParkings + '' + CompleteGraphUri    } }
我需要如下说明:

curl-X POST-H内容类型:text/turtle--data binary@parkings.ttl “”

但我得到的是:

curl-X POST-H内容类型:text/turtle--data binary@parkings.ttl ''

我需要双引号而不是单引号。你能帮我吗

谢谢你的关注

关于更换

sh 'curl -X POST -H Content-Type:text/turtle --data-binary @' + RDFParkings + '' + CompleteGraphUri


这不是简单地避开双引号吗?我是说,
\“
对不起,我忘了说我试过了,它也不起作用。我试过AKSW提出的解决方案,但两者都没有。
 sh 'curl -X POST -H Content-Type:text/turtle --data-binary @' + RDFParkings + ' "' + CompleteGraphUri + '"'