updates call to pushArtifact

This commit is contained in:
Hyatt 2022-01-20 16:50:03 -06:00
parent 97ed58926c
commit 100a4bf62c
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

76
build-ffmpeg.jenkins Normal file
View File

@ -0,0 +1,76 @@
def repository = "registry.c.test-chamber-13.lan"
def repositoryCreds = "harbor-repository-creds"
def label = "kubernetes-${UUID.randomUUID().toString()}"
def templateName = "pipeline-worker"
podTemplate(
label: label,
name: templateName,
yaml: functions.podYaml(
repo: repository,
templateName: templateName,
alpine: true,
fedora: true
)
) {
node (label) {
def workspace = pwd()
stage ("Pull FFMpeg Builder") {
dir("ffmpeg") {
checkout ([
$class: "GitSCM",
branches: [
[
name: "refs/heads/master",
],
],
userRemoteConfigs: [
[
url: "https://github.com/markus-perl/ffmpeg-build-script.git",
],
],
extensions: [
[
$class: "CloneOption",
shallow: true,
],
[
$class: "CheckoutOption",
timeout: 2,
],
],
])
}
}
stage ("Build FFMpeg") {
container ("fedora") {
sh """
dnf install curl gcc-g++ libtool make xz python perl perl-devel openssl-devel diffutils bzip2 glibc-static libstdc++-static -y
cd ${workspace}/ffmpeg
SKIPINSTALL=yes ./build-ffmpeg --full-static --enable-gpl-and-non-free --build
"""
}
}
functions.pushArtifact(
repoCreds: "nexus-generic-upload-bot",
fileName: "ffmpeg",
filePath: "${workspace}/ffmpeg/workspace/bin/",
fileURL: "https://nexus.c.test-chamber-13.lan/repository/generic/ffmpeg/"
)
functions.pushArtifact(
repoCreds: "nexus-generic-upload-bot",
fileName: "ffprobe",
filePath: "${workspace}/ffmpeg/workspace/bin/",
fileURL: "https://nexus.c.test-chamber-13.lan/repository/generic/ffmpeg/"
)
functions.pushArtifact(
repoCreds: "nexus-generic-upload-bot",
fileName: "ffplay",
filePath: "${workspace}/ffmpeg/workspace/bin/",
fileURL: "https://nexus.c.test-chamber-13.lan/repository/generic/ffmpeg/"
)
}
}