Removed some unnecessary stuff in the Jenkinsfile

This commit is contained in:
Toastie 2025-03-27 15:22:24 +13:00
parent 9c6316d857
commit 70f76041c9
Signed by: toastie_t0ast
GPG key ID: 74226CF45EEE5AAF

57
Jenkinsfile vendored
View file

@ -47,8 +47,7 @@ pipeline
{
sh 'rpmbuild -bb packaging/supportchild.spec --define "_topdir $PWD/.rpmbuild-el9" --define "dev_build true"'
sh 'cp .rpmbuild-el9/RPMS/x86_64/supportchild-dev-*.x86_64.rpm linux-x64/'
archiveArtifacts(artifacts: 'linux-x64/supportchild-dev-*.x86_64.rpm', caseSensitive: true)
stash includes: 'linux-x64/supportchild-dev-*.x86_64.rpm', name: 'el9-rpm'
archiveArtifacts(artifacts: 'linux-x64/supportchild-dev-*.el9.x86_64.rpm', caseSensitive: true)
}
}
stage('RHEL8')
@ -62,8 +61,7 @@ pipeline
{
sh 'rpmbuild -bb packaging/supportchild.spec --define "_topdir $PWD/.rpmbuild-el8" --define "dev_build true"'
sh 'cp .rpmbuild-el8/RPMS/x86_64/supportchild-dev-*.x86_64.rpm linux-x64/'
archiveArtifacts(artifacts: 'linux-x64/supportchild-dev-*.x86_64.rpm', caseSensitive: true)
stash includes: 'linux-x64/supportchild-dev-*.x86_64.rpm', name: 'el8-rpm'
archiveArtifacts(artifacts: 'linux-x64/supportchild-dev-*.el8.x86_64.rpm', caseSensitive: true)
}
}
stage('Fedora')
@ -77,56 +75,7 @@ pipeline
{
sh 'rpmbuild -bb packaging/supportchild.spec --define "_topdir $PWD/.rpmbuild-fedora" --define "dev_build true"'
sh 'cp .rpmbuild-fedora/RPMS/x86_64/supportchild-dev-*.x86_64.rpm linux-x64/'
archiveArtifacts(artifacts: 'linux-x64/supportchild-dev-*.x86_64.rpm', caseSensitive: true)
stash includes: 'linux-x64/supportchild-dev-*.x86_64.rpm', name: 'fedora-rpm'
}
}
}
}
stage('Deploy')
{
parallel
{
stage('RHEL9')
{
when
{
expression { return env.BRANCH_NAME == 'main' || env.BRANCH_NAME == 'beta'; }
}
steps
{
unstash name: 'el9-rpm'
sh 'mkdir -p /usr/share/nginx/repo.toastiet0ast.com/rhel/el9/packages/supportchild/'
sh 'cp linux-x64/supportchild-dev-*.x86_64.rpm /usr/share/nginx/repo.toastiet0ast.com/rhel/el9/packages/supportchild/'
sh 'createrepo_c --update /usr/share/nginx/repo.toastiet0ast.com/rhel/el9'
}
}
stage('RHEL8')
{
when
{
expression { return env.BRANCH_NAME == 'main' || env.BRANCH_NAME == 'beta'; }
}
steps
{
unstash name: 'el8-rpm'
sh 'mkdir -p /usr/share/nginx/repo.toastiet0ast.com/rhel/el8/packages/supportchild/'
sh 'cp linux-x64/supportchild-dev-*.x86_64.rpm /usr/share/nginx/repo.toastiet0ast.com/rhel/el8/packages/supportchild/'
sh 'createrepo_c --update /usr/share/nginx/repo.toastiet0ast.com/rhel/el8'
}
}
stage('Fedora')
{
when
{
expression { return env.BRANCH_NAME == 'main' || env.BRANCH_NAME == 'beta'; }
}
steps
{
unstash name: 'fedora-rpm'
sh 'mkdir -p /usr/share/nginx/repo.toastiet0ast.com/fedora/packages/supportchild/'
sh 'cp linux-x64/supportchild-dev-*.x86_64.rpm /usr/share/nginx/repo.toastiet0ast.com/fedora/packages/supportchild/'
sh 'createrepo_c --update /usr/share/nginx/repo.toastiet0ast.com/fedora'
archiveArtifacts(artifacts: 'linux-x64/supportchild-dev-*.fedora.x86_64.rpm', caseSensitive: true)
}
}
}