プラグインに取り組んでいて、次のようなステップの使用から切り替えたい場合:
step([$class: 'Gradle',
switches: "-PenableInstallerDistribution=true",
tasks: 'build install',
gradleName: '(Default)',
useWrapper: true,
makeExecutable: true,
fromRootBuildScriptDir: true,
useWorkspaceAsHome: true])
次のような素敵な DSL 要素に:
gradle switches: "-PenableInstallerDistribution=true",
tasks: 'build install',
gradleName: '(Default)',
useWrapper: true,
makeExecutable: true,
fromRootBuildScriptDir: true,
useWorkspaceAsHome: true
おそらく最も重要なのは、スニペット ジェネレーターに表示されることです。どうすればよいでしょうか? 見つけたドキュメントを調べましたが、DSL の拡張に関するアドバイスはまだ見つかりません。