私はThis project is parameterized
を選択し、2つのパラメータ:query
とindex
を持っています。それから私は、シェルのオプションを実行することを選択する:jenkinsジョブから呼び出されたシェルスクリプトのパラメータ化されたビルドからjenkinsパラメータにアクセスする
#!/bin/sh
curl -XPOST 'localhost:9200/_reindex?pretty' -H 'Content-Type: application/json' -d'
{
"source": {
"index": "{$index}", "query": "{$query}"}}
},
"dest": {
"index": "myindex_output"
}
}
'
私はそれがすべてのparamsを読んでいないことを確認し、私が取得:"type" : "index_not_found_exception", "resource.id" : "{$index}"
私はそれを正しく行う必要がありますどのように?