Access Cloudbees private mount from Jenkins pipeline -
when using 'normal' jenkins build job offered possibility mount private repository (which default). using pipeline job configuration option missing , repository not mounted default.
[my pipeline] running shell script + ls -lar /private /private: total 9 drwxrwxrwx 2 root root 2 aug 13 2013 . dr-xr-xr-x 23 root root 32 jul 28 10:47 ..
i require access private repository , know how achieve jenkins pipeline (running in cloudbees)
i dropped question @ cloudbees , response: "this feature not support on pipeline, , there no plan implement support. should consider using configuration file provider plugin."
i came this:
configfileprovider([configfile(fileid: 'my-settings-file-id', targetlocation: 'my-settings-override.xml', variable: 'mvn_settings')]) { // optional run script , use ${mvn_settings} }
and further down reference my-settings-override.xml has been copied root of workspace. ideally run maven commands within configfileprovider block, needed pass osgi container used integration tests.
Comments
Post a Comment