use remote agent instead of ssh connection
Some checks failed
gitea-sync/ci-image/pipeline/head There was a failure building this commit

This commit is contained in:
dany 2022-09-29 19:13:47 +02:00
parent 464b0ff3c9
commit 4f93414b69

14
Jenkinsfile vendored
View File

@ -1,14 +1,5 @@
def remote = [:]
remote.name = 'workstation'
remote.host = 'workstation'
remote.user = 'dany'
remote.identityFile = '/var/jenkins_home/.ssh/id_rsa'
remote.allowAnyHosts = true
remote.agent = false
remote.logLevel = 'INFO'
pipeline{
agent { node{ label'master' }}
agent { node{ label'workstation' }}
options {
// Limit build history with buildDiscarder option:
// daysToKeepStr: history is only kept up to this many days.
@ -29,10 +20,9 @@ pipeline{
{
stage('Build') {
steps {
sshCommand remote: remote, command: '''
sh'''
set -e
set -x
export WORKSPACE=$(realpath "./jenkins/workspace/ci-image")
cd $WORKSPACE
# docker rmi -f $(docker images -f "dangling=true" -q)
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64