Skip to content

Commit

Permalink
Move cargo installation for release inside dotnet context (which sets…
Browse files Browse the repository at this point in the history
… HOME) (#2059)
  • Loading branch information
Mpdreamz authored Apr 26, 2023
1 parent ba01b17 commit e5f767d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,6 @@ pipeline {
deleteDir()
unstash 'source'
dir("${BASE_DIR}"){
sh label: 'Rustup', script: 'rustup default 1.67.1'
sh label: 'Cargo make', script: 'cargo install --force cargo-make'
release(secret: 'secret/apm-team/ci/elastic-observability-feedz.io', withSuffix: true)
}
}
Expand Down Expand Up @@ -538,8 +536,6 @@ pipeline {
deleteDir()
unstash 'source'
dir("${BASE_DIR}") {
sh label: 'Rustup', script: 'rustup default 1.67.1'
sh label: 'Cargo make', script: 'cargo install --force cargo-make'
release(secret: 'secret/apm-team/ci/elastic-observability-nuget')
}
}
Expand Down Expand Up @@ -699,6 +695,8 @@ def release(Map args = [:]){
def secret = args.secret
def withSuffix = args.get('withSuffix', false)
dotnet(){
sh label: 'Rustup', script: 'rustup default 1.67.1'
sh label: 'Cargo make', script: 'cargo install --force cargo-make'
sh(label: 'Release', script: ".ci/linux/release.sh ${withSuffix}")
def repo = getVaultSecret(secret: secret)
wrap([$class: 'MaskPasswordsBuildWrapper', varPasswordPairs: [
Expand Down

0 comments on commit e5f767d

Please sign in to comment.