From 55c5d9b2557a586f1ee72dd895fb28f54481294f Mon Sep 17 00:00:00 2001 From: "Gerard Castillo Lasheras (BI X)" Date: Tue, 17 Sep 2024 17:14:32 +0200 Subject: [PATCH] [#1061] cargo generate directly to files folder --- be-rust-axum/Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/be-rust-axum/Jenkinsfile b/be-rust-axum/Jenkinsfile index c0f3c4ee3..453b2fede 100644 --- a/be-rust-axum/Jenkinsfile +++ b/be-rust-axum/Jenkinsfile @@ -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" ) }