fuck this guy
This commit is contained in:
62
Jenkinsfile
vendored
62
Jenkinsfile
vendored
@@ -1,62 +0,0 @@
|
||||
pipeline {
|
||||
agent {
|
||||
dockerContainer {
|
||||
image 'rust:1.75'
|
||||
}
|
||||
}
|
||||
|
||||
environment {
|
||||
CARGO_HOME = '/usr/local/cargo'
|
||||
RUSTUP_HOME = '/usr/local/rustup'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
|
||||
stage('Setup Environment') {
|
||||
steps {
|
||||
sh 'cargo --version'
|
||||
sh 'rustc --version'
|
||||
sh 'mkdir -p target'
|
||||
sh 'mkdir -p ~/.cargo/registry'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Dependencies') {
|
||||
steps {
|
||||
sh 'cargo fetch'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Run Tests') {
|
||||
steps {
|
||||
sh 'cargo test --release'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Binary') {
|
||||
steps {
|
||||
sh 'cargo build --release'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Archive') {
|
||||
steps {
|
||||
archiveArtifacts artifacts: 'target/release/**', allowEmptyArchive: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
success {
|
||||
echo 'Rust build completed successfully!'
|
||||
}
|
||||
failure {
|
||||
echo 'Rust build failed!'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user