Skip to content

Commit

Permalink
ci: move deb to Jenkins
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
  • Loading branch information
Vitor Bandeira committed Nov 1, 2024
1 parent 9296dfe commit c698aec
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,30 @@ def getParallelTests(String image) {

];

deb_os = [
[name: 'Ubuntu 20.04' , image: 'openroad/ubuntu20.04-dev'],
[name: 'Ubuntu 22.04' , image: 'openroad/ubuntu22.04-dev'],
[name: 'Debian 11' , image: 'openroad/debian11-dev']
];

deb_os.each { os ->
ret["Build .deb - ${os.name}"] = {
node {
stage('Setup and Build') {
withDockerContainer(args: '-u root', image: os.image) {
sh label: 'Configure git', script: "git config --system --add safe.directory '*'";
checkout scm;
def version = sh(script: 'git describe | sed s,^v,,', returnStdout: true).trim();
sh label: 'Create Changelog', script: "./debian/create-changelog.sh ${version}";
sh label: 'Run debuild', script: 'debuild --preserve-env --preserve-envvar=PATH -B -j$(nproc)';
sh label: 'Move generated files', script: 'mv -v ../*' + "${version}" + '* .';
archiveArtifacts artifacts: '*' + "${version}" + '*';
}
}
}
}
}

return ret;
}

Expand Down

0 comments on commit c698aec

Please sign in to comment.