Skip to content

Commit

Permalink
[#1061] cargo generate directly to files folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardcl committed Sep 19, 2024
1 parent 5c67cd5 commit 55c5d9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions be-rust-axum/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ odsQuickstarterPipeline(
// https://cargo-generate.github.io/cargo-generate/index.html
stage('Cargo Generate project') {
sh(
script: "cargo generate --path ${context.sourceDir}/rust-template --name ${context.componentId}",
label: "Process Rust template"
script: "cargo generate --path ${context.sourceDir}/rust-template --name ${context.componentId} --destination ${context.sourceDir}/tempdir",
label: "Process Rust template to tempdir"
)
sh(
script: "mv ${context.componentId} ${context.sourceDir}/files",
sh(
script: "mv ${context.sourceDir}/tempdir/${context.componentId} ${context.sourceDir}/files",
label: "Create files folder"
)
}
Expand Down

0 comments on commit 55c5d9b

Please sign in to comment.