parent
9c6316d857
commit
70f76041c9
1 changed files with 3 additions and 54 deletions
57
Jenkinsfile
vendored
57
Jenkinsfile
vendored
|
@ -47,8 +47,7 @@ pipeline
|
||||||
{
|
{
|
||||||
sh 'rpmbuild -bb packaging/supportchild.spec --define "_topdir $PWD/.rpmbuild-el9" --define "dev_build true"'
|
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/'
|
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)
|
archiveArtifacts(artifacts: 'linux-x64/supportchild-dev-*.el9.x86_64.rpm', caseSensitive: true)
|
||||||
stash includes: 'linux-x64/supportchild-dev-*.x86_64.rpm', name: 'el9-rpm'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('RHEL8')
|
stage('RHEL8')
|
||||||
|
@ -62,8 +61,7 @@ pipeline
|
||||||
{
|
{
|
||||||
sh 'rpmbuild -bb packaging/supportchild.spec --define "_topdir $PWD/.rpmbuild-el8" --define "dev_build true"'
|
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/'
|
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)
|
archiveArtifacts(artifacts: 'linux-x64/supportchild-dev-*.el8.x86_64.rpm', caseSensitive: true)
|
||||||
stash includes: 'linux-x64/supportchild-dev-*.x86_64.rpm', name: 'el8-rpm'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Fedora')
|
stage('Fedora')
|
||||||
|
@ -77,56 +75,7 @@ pipeline
|
||||||
{
|
{
|
||||||
sh 'rpmbuild -bb packaging/supportchild.spec --define "_topdir $PWD/.rpmbuild-fedora" --define "dev_build true"'
|
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/'
|
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)
|
archiveArtifacts(artifacts: 'linux-x64/supportchild-dev-*.fedora.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'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue