Skip to content

Commit

Permalink
only Windows for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve committed Sep 15, 2023
1 parent 2a8c20a commit 35e134d
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,50 +41,50 @@ pipeline {
}
}
}
stage('Linux') {
agent {
label "docker&&linux"
}
options {
timeout(time: 30, unit: 'MINUTES')
}
steps {
script {
infra.withDockerCredentials {
def branchName = "${env.BRANCH_NAME}"
if (infra.isTrusted()) {
if (branchName ==~ 'master') {
sh '''
docker buildx create --use
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx bake --push --file docker-bake.hcl linux
'''
} else if (env.TAG_NAME != null) {
sh """
export ON_TAG=true
export VERSION=$TAG_NAME
docker buildx create --use
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx bake --push --file docker-bake.hcl linux
"""
}
} else {
sh 'make build'
try {
sh 'make test'
} finally {
junit('target/*.xml')
}
sh '''
docker buildx create --use
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx bake --file docker-bake.hcl linux
'''
}
}
}
}
}
// stage('Linux') {
// agent {
// label "docker&&linux"
// }
// options {
// timeout(time: 30, unit: 'MINUTES')
// }
// steps {
// script {
// infra.withDockerCredentials {
// def branchName = "${env.BRANCH_NAME}"
// if (infra.isTrusted()) {
// if (branchName ==~ 'master') {
// sh '''
// docker buildx create --use
// docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
// docker buildx bake --push --file docker-bake.hcl linux
// '''
// } else if (env.TAG_NAME != null) {
// sh """
// export ON_TAG=true
// export VERSION=$TAG_NAME
// docker buildx create --use
// docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
// docker buildx bake --push --file docker-bake.hcl linux
// """
// }
// } else {
// sh 'make build'
// try {
// sh 'make test'
// } finally {
// junit('target/*.xml')
// }
// sh '''
// docker buildx create --use
// docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
// docker buildx bake --file docker-bake.hcl linux
// '''
// }
// }
// }
// }
// }
}
}
}
Expand Down

0 comments on commit 35e134d

Please sign in to comment.