From 5ad952d37e1848c4e6cbe7ffe86212ce29ec98d4 Mon Sep 17 00:00:00 2001 From: Mutzi Date: Sat, 11 Feb 2023 13:47:23 +0100 Subject: [PATCH] Testing with Jenkins --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b2adb9d..394ed41 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,11 +7,13 @@ pipeline { } environment { RUSTFLAGS = '-C target-feature=+crt-static -C link-self-contained=yes -C link-arg=-s' + TOKEN = credentials('00912d76-da44-4f04-890f-b11180e7a68f') } steps { sh 'apk add pkgconf musl-dev curl' sh 'cargo build --release --target x86_64-unknown-linux-musl' - sh 'ls -la' + sh 'cp target/x86_64-unknown-linux-musl/release/dotfiles_installer ./installer-amd64' + sh 'curl --user root:${TOKEN} --upload-file ./installer-amd64 https://gitea.mattv.de/api/packages/root/generic/installer/${BUILD_NUMBER}/installer-amd64' } } }