You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rgb-led-board/Jenkinsfile

25 lines
745 B
Plaintext

pipeline {
2 years ago
agent any
stages {
2 years ago
/*stage('GitCheckOut') {
2 years ago
steps{
checkout([$class: 'GitSCM', branches: [[name: "${env.CHECKOUT}"]], extensions: [], userRemoteConfigs: [[credentialsId: 'gitea', url: "$GIT_URL"]]])
2 years ago
}
2 years ago
}*/
stage('buildPush') {
2 years ago
steps{
2 years ago
sh 'echo "ADASDASDSADSADASD"'
2 years ago
sh '''#!/bin/bash
docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-1 --use
2 years ago
'''
2 years ago
sh 'docker buildx build . -t registry.local/rgbboard:v0.0.$BUILD_NUMBER --push --platform=linux/arm64,linux/amd64'
2 years ago
sh 'docker buildx rm jenkins-agent'
}
2 years ago
}
}
2 years ago
}