Skip to content

Commit

Permalink
Delete GitHub checks to Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuttari committed Jan 18, 2025
1 parent 3d24998 commit af951d1
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 105 deletions.
37 changes: 14 additions & 23 deletions .jenkins/dev-debian-12.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
String configName = "debian-12"
String dockerfile = "debian-12.Dockerfile"
String checkName = "ci-" + configName

publishChecks(name: checkName, status: 'QUEUED', summary: 'Queued')

node {
agent {
Expand Down Expand Up @@ -36,37 +33,31 @@ node {
" -f " + runtimeSrcPath + "/.jenkins/" + dockerfile +
" " + runtimeSrcPath + "/.jenkins";

publishChecks(name: checkName, status: 'IN_PROGRESS', summary: 'In progress')

def dockerImage

stage("Docker image") {
dockerImage = docker.build(dockerRuntimeImageName + ':' + env.GIT_COMMIT, dockerArgs)
}

dockerImage.inside() {
withChecks(name: checkName) {
stage("OS information") {
sh "cat /etc/os-release"
}
stage("OS information") {
sh "cat /etc/os-release"
}

stage('Configure') {
cmake arguments: "-S " + runtimeSrcPath + " -B " + runtimeBuildPath + " -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LINKER_TYPE=MOLD -DCMAKE_INSTALL_PREFIX=" + runtimeInstallPath, installation: 'InSearchPath', label: 'Configure'
}
stage('Configure') {
cmake arguments: "-S " + runtimeSrcPath + " -B " + runtimeBuildPath + " -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LINKER_TYPE=MOLD -DCMAKE_INSTALL_PREFIX=" + runtimeInstallPath, installation: 'InSearchPath', label: 'Configure'
}

stage('Build') {
cmake arguments: "--build " + runtimeBuildPath, installation: 'InSearchPath', label: 'Build'
}
stage('Build') {
cmake arguments: "--build " + runtimeBuildPath, installation: 'InSearchPath', label: 'Build'
}

stage('Unit test') {
cmake arguments: "--build " + runtimeBuildPath + " --target test", installation: 'InSearchPath', label: 'Unit tests'
}
stage('Unit test') {
cmake arguments: "--build " + runtimeBuildPath + " --target test", installation: 'InSearchPath', label: 'Unit tests'
}

stage('Install') {
cmake arguments: "--build " + runtimeBuildPath + " --target install", installation: 'InSearchPath', label: 'Install'
}
stage('Install') {
cmake arguments: "--build " + runtimeBuildPath + " --target install", installation: 'InSearchPath', label: 'Install'
}
}

publishChecks(name: checkName, conclusion: 'SUCCESS', summary: 'Completed')
}
37 changes: 14 additions & 23 deletions .jenkins/dev-fedora-40.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
String configName = "fedora-40"
String dockerfile = "fedora-40.Dockerfile"
String checkName = "ci-" + configName

publishChecks(name: checkName, status: 'QUEUED', summary: 'Queued')

node {
agent {
Expand Down Expand Up @@ -36,37 +33,31 @@ node {
" -f " + runtimeSrcPath + "/.jenkins/" + dockerfile +
" " + runtimeSrcPath + "/.jenkins";

publishChecks(name: checkName, status: 'IN_PROGRESS', summary: 'In progress')

def dockerImage

stage("Docker image") {
dockerImage = docker.build(dockerRuntimeImageName + ':' + env.GIT_COMMIT, dockerArgs)
}

dockerImage.inside() {
withChecks(name: checkName) {
stage("OS information") {
sh "cat /etc/os-release"
}
stage("OS information") {
sh "cat /etc/os-release"
}

stage('Configure') {
cmake arguments: "-S " + runtimeSrcPath + " -B " + runtimeBuildPath + " -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LINKER_TYPE=MOLD -DCMAKE_INSTALL_PREFIX=" + runtimeInstallPath, installation: 'InSearchPath', label: 'Configure'
}
stage('Configure') {
cmake arguments: "-S " + runtimeSrcPath + " -B " + runtimeBuildPath + " -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LINKER_TYPE=MOLD -DCMAKE_INSTALL_PREFIX=" + runtimeInstallPath, installation: 'InSearchPath', label: 'Configure'
}

stage('Build') {
cmake arguments: "--build " + runtimeBuildPath, installation: 'InSearchPath', label: 'Build'
}
stage('Build') {
cmake arguments: "--build " + runtimeBuildPath, installation: 'InSearchPath', label: 'Build'
}

stage('Unit test') {
cmake arguments: "--build " + runtimeBuildPath + " --target test", installation: 'InSearchPath', label: 'Unit tests'
}
stage('Unit test') {
cmake arguments: "--build " + runtimeBuildPath + " --target test", installation: 'InSearchPath', label: 'Unit tests'
}

stage('Install') {
cmake arguments: "--build " + runtimeBuildPath + " --target install", installation: 'InSearchPath', label: 'Install'
}
stage('Install') {
cmake arguments: "--build " + runtimeBuildPath + " --target install", installation: 'InSearchPath', label: 'Install'
}
}

publishChecks(name: checkName, conclusion: 'SUCCESS', summary: 'Completed')
}
37 changes: 14 additions & 23 deletions .jenkins/dev-ubuntu-22.04.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
String configName = "ubuntu-22.04"
String dockerfile = "ubuntu-22.04.Dockerfile"
String checkName = "ci-" + configName

publishChecks(name: checkName, status: 'QUEUED', summary: 'Queued')

node {
agent {
Expand Down Expand Up @@ -36,37 +33,31 @@ node {
" -f " + runtimeSrcPath + "/.jenkins/" + dockerfile +
" " + runtimeSrcPath + "/.jenkins";

publishChecks(name: checkName, status: 'IN_PROGRESS', summary: 'In progress')

def dockerImage

stage("Docker image") {
dockerImage = docker.build(dockerRuntimeImageName + ':' + env.GIT_COMMIT, dockerArgs)
}

dockerImage.inside() {
withChecks(name: checkName) {
stage("OS information") {
sh "cat /etc/os-release"
}
stage("OS information") {
sh "cat /etc/os-release"
}

stage('Configure') {
cmake arguments: "-S " + runtimeSrcPath + " -B " + runtimeBuildPath + " -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LINKER_TYPE=MOLD -DCMAKE_INSTALL_PREFIX=" + runtimeInstallPath, installation: 'InSearchPath', label: 'Configure'
}
stage('Configure') {
cmake arguments: "-S " + runtimeSrcPath + " -B " + runtimeBuildPath + " -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LINKER_TYPE=MOLD -DCMAKE_INSTALL_PREFIX=" + runtimeInstallPath, installation: 'InSearchPath', label: 'Configure'
}

stage('Build') {
cmake arguments: "--build " + runtimeBuildPath, installation: 'InSearchPath', label: 'Build'
}
stage('Build') {
cmake arguments: "--build " + runtimeBuildPath, installation: 'InSearchPath', label: 'Build'
}

stage('Unit test') {
cmake arguments: "--build " + runtimeBuildPath + " --target test", installation: 'InSearchPath', label: 'Unit tests'
}
stage('Unit test') {
cmake arguments: "--build " + runtimeBuildPath + " --target test", installation: 'InSearchPath', label: 'Unit tests'
}

stage('Install') {
cmake arguments: "--build " + runtimeBuildPath + " --target install", installation: 'InSearchPath', label: 'Install'
}
stage('Install') {
cmake arguments: "--build " + runtimeBuildPath + " --target install", installation: 'InSearchPath', label: 'Install'
}
}

publishChecks(name: checkName, conclusion: 'SUCCESS', summary: 'Completed')
}
7 changes: 0 additions & 7 deletions .jenkins/docker-dev-debug-debian-12.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
String configName = "debian-12"
String dockerfile = "debian-12.Dockerfile"
String checkName = "docker-dev-debug-image"

publishChecks(name: checkName, status: 'QUEUED', summary: 'Queued')

node {
agent {
Expand Down Expand Up @@ -37,8 +34,6 @@ node {
" -f " + runtimeSrcPath + "/.jenkins/" + dockerfile +
" " + runtimeSrcPath + "/.jenkins";

publishChecks(name: checkName, status: 'IN_PROGRESS', summary: 'In progress')

def dockerImage

stage('Build') {
Expand All @@ -56,6 +51,4 @@ node {
dockerImage.push("latest")
}
}

publishChecks(name: checkName, conclusion: 'SUCCESS', summary: 'Completed')
}
7 changes: 0 additions & 7 deletions .jenkins/docker-dev-release-debian-12.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
String configName = "debian-12"
String dockerfile = "debian-12.Dockerfile"
String checkName = "docker-dev-release-image"

publishChecks(name: checkName, status: 'QUEUED', summary: 'Queued')

node {
agent {
Expand Down Expand Up @@ -37,8 +34,6 @@ node {
" -f " + runtimeSrcPath + "/.jenkins/" + dockerfile +
" " + runtimeSrcPath + "/.jenkins";

publishChecks(name: checkName, status: 'IN_PROGRESS', summary: 'In progress')

def dockerImage

stage('Build') {
Expand All @@ -56,6 +51,4 @@ node {
dockerImage.push("latest")
}
}

publishChecks(name: checkName, conclusion: 'SUCCESS', summary: 'Completed')
}
35 changes: 13 additions & 22 deletions .jenkins/package-debian-12.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
String configName = "debian-12"
String dockerfile = "debian-12.Dockerfile"
String checkName = "package-debian-12"

publishChecks(name: checkName, status: 'QUEUED', summary: 'Queued')

node {
agent {
Expand Down Expand Up @@ -35,36 +32,30 @@ node {
" -f " + runtimeSrcPath + "/.jenkins/" + dockerfile +
" " + runtimeSrcPath + "/.jenkins";

publishChecks(name: checkName, status: 'IN_PROGRESS', summary: 'In progress')

def dockerImage

stage('Docker image') {
dockerImage = docker.build(dockerRuntimeImageName + ':latest', dockerArgs)
}

dockerImage.inside() {
withChecks(name: checkName) {
stage("OS information") {
sh "cat /etc/os-release"
}
stage("OS information") {
sh "cat /etc/os-release"
}

stage('Configure') {
cmake arguments: "-S " + runtimeSrcPath + " -B " + runtimeBuildPath + " -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_LINKER_TYPE=MOLD -DCMAKE_INSTALL_PREFIX=" + runtimeInstallPath, installation: 'InSearchPath', label: 'Configure'
}
stage('Configure') {
cmake arguments: "-S " + runtimeSrcPath + " -B " + runtimeBuildPath + " -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_LINKER_TYPE=MOLD -DCMAKE_INSTALL_PREFIX=" + runtimeInstallPath, installation: 'InSearchPath', label: 'Configure'
}

stage('Install') {
cmake arguments: "--build " + runtimeBuildPath + " --target install", installation: 'InSearchPath', label: 'Install'
}
stage('Install') {
cmake arguments: "--build " + runtimeBuildPath + " --target install", installation: 'InSearchPath', label: 'Install'
}

stage('Package') {
sh "chmod +x " + runtimeSrcPath + "/.jenkins/package/" + configName + "/build.sh"
sh runtimeSrcPath + "/.jenkins/package/" + configName + "/build.sh " + runtimeSrcPath + " " + runtimeInstallPath
stage('Package') {
sh "chmod +x " + runtimeSrcPath + "/.jenkins/package/" + configName + "/build.sh"
sh runtimeSrcPath + "/.jenkins/package/" + configName + "/build.sh " + runtimeSrcPath + " " + runtimeInstallPath

sshPublisher(publishers: [sshPublisherDesc(configName: 'marco-package', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: configName + "/amd64", remoteDirectorySDF: false, sourceFiles: '*.deb')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
sshPublisher(publishers: [sshPublisherDesc(configName: 'marco-package', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: configName + "/amd64", remoteDirectorySDF: false, sourceFiles: '*.deb')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
}

publishChecks(name: checkName, conclusion: 'SUCCESS', summary: 'Completed')
}

0 comments on commit af951d1

Please sign in to comment.