Merge branch 'master' of ssh://git.iqser.com:2222/rr/image-prediction into make-sec-build-work
This commit is contained in:
commit
08149d3a99
@ -96,11 +96,8 @@ public class PlanSpec {
|
|||||||
.checkoutItems(new CheckoutItem().defaultRepository()),
|
.checkoutItems(new CheckoutItem().defaultRepository()),
|
||||||
new ScriptTask()
|
new ScriptTask()
|
||||||
.description("Set config and keys.")
|
.description("Set config and keys.")
|
||||||
.inlineBody("mkdir -p ~/.ssh\n" +
|
.location(Location.FILE)
|
||||||
"echo \"${bamboo.bamboo_agent_ssh}\" | base64 -d >> ~/.ssh/id_rsa\n" +
|
.fileFromPath("bamboo-specs/src/main/resources/scripts/key-prepare.sh"),
|
||||||
"echo \"host vector.iqser.com\" > ~/.ssh/config\n" +
|
|
||||||
"echo \" user bamboo-agent\" >> ~/.ssh/config\n" +
|
|
||||||
"chmod 600 ~/.ssh/config ~/.ssh/id_rsa"),
|
|
||||||
new ScriptTask()
|
new ScriptTask()
|
||||||
.description("Build Docker container.")
|
.description("Build Docker container.")
|
||||||
.location(Location.FILE)
|
.location(Location.FILE)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${bamboo.bamboo_agent_ssh}" | base64 -d >> ~/.ssh/id_rsa
|
echo "${bamboo_agent_ssh}" | base64 -d >> ~/.ssh/id_rsa
|
||||||
echo "host vector.iqser.com" > ~/.ssh/config
|
echo "host vector.iqser.com" > ~/.ssh/config
|
||||||
echo " user bamboo-agent" >> ~/.ssh/config
|
echo " user bamboo-agent" >> ~/.ssh/config
|
||||||
chmod 600 ~/.ssh/config ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/config ~/.ssh/id_rsa
|
||||||
Loading…
x
Reference in New Issue
Block a user