Testing with Jenkins
Some checks failed
Gitea Organization/dotfiles/pipeline/head There was a failure building this commit

This commit is contained in:
Mutzi 2023-02-11 13:47:23 +01:00
parent 9798dfe5cb
commit 5ad952d37e

4
Jenkinsfile vendored
View File

@ -7,11 +7,13 @@ pipeline {
} }
environment { environment {
RUSTFLAGS = '-C target-feature=+crt-static -C link-self-contained=yes -C link-arg=-s' RUSTFLAGS = '-C target-feature=+crt-static -C link-self-contained=yes -C link-arg=-s'
TOKEN = credentials('00912d76-da44-4f04-890f-b11180e7a68f')
} }
steps { steps {
sh 'apk add pkgconf musl-dev curl' sh 'apk add pkgconf musl-dev curl'
sh 'cargo build --release --target x86_64-unknown-linux-musl' 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'
} }
} }
} }