use remote agent instead of ssh connection
Some checks failed
gitea-sync/ci-image/pipeline/head There was a failure building this commit
Some checks failed
gitea-sync/ci-image/pipeline/head There was a failure building this commit
This commit is contained in:
parent
464b0ff3c9
commit
4f93414b69
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user