forked from SPC/spc-site
Update CD
This commit is contained in:
parent
8a1deab1f7
commit
679d993b6d
@ -41,9 +41,9 @@ job("Restart service"){
|
|||||||
shellScript {
|
shellScript {
|
||||||
interpreter = "/bin/bash"
|
interpreter = "/bin/bash"
|
||||||
content = """
|
content = """
|
||||||
echo ${'$'}ID > id.key
|
echo ${'$'}ID > id_ed25519
|
||||||
chmod 400 id.key
|
chmod 400 id_ed25519
|
||||||
ssh -i id.key -o StrictHostKeyChecking=no -t "${'$'}USER@${'$'}HOST" "systemctl restart sciprog-site"
|
ssh -i id_ed25519 -o StrictHostKeyChecking=no -t "${'$'}USER@${'$'}HOST" "systemctl restart sciprog-site"
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user