diff options
| author | Max Nanis | 2025-06-27 13:45:48 +0700 |
|---|---|---|
| committer | Max Nanis | 2025-06-27 13:45:48 +0700 |
| commit | 7cdd091a6d678ce75a9aa366b71ead580cfd9f4f (patch) | |
| tree | ab287f49c6d6db38adb7b57390c2a4f46b8480d8 /Jenkinsfile | |
| parent | 74f85cc029f9770f56e38a0769823cf959842e44 (diff) | |
| download | panel-ui-7cdd091a6d678ce75a9aa366b71ead580cfd9f4f.tar.gz panel-ui-7cdd091a6d678ce75a9aa366b71ead580cfd9f4f.zip | |
variable isn't available outside of script block
Diffstat (limited to 'Jenkinsfile')
| -rw-r--r-- | Jenkinsfile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index c6faaf8..f2d9ef6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -90,10 +90,11 @@ pipeline { def branch = env.BRANCH_NAME echo "Detected branch: ${branch}" def versioned = "${env.BUILD_DIR}/${env.JS_FILENAME}-${branch}.js" + sh "cp ${env.BUILD_DIR}/${env.JS_FILENAME}.js ${versioned}" + sh "/usr/bin/rsync -v ${env.BUILD_DIR}/${versioned}.js grl-cdn:/root/gr-cdn/" } - sh "/usr/bin/rsync -v ${env.BUILD_DIR}/${versioned}.js grl-cdn:/root/gr-cdn/" } } } @@ -111,11 +112,11 @@ pipeline { def tag = env.TAG_NAME echo "Detected tag: ${tag}" def versioned = "${env.BUILD_DIR}/${env.JS_FILENAME}-${tag}.js" + sh "cp ${env.BUILD_DIR}/${env.JS_FILENAME}.js ${versioned}" + sh "/usr/bin/rsync -v ${env.BUILD_DIR}/${versioned} grl-cdn:/root/gr-cdn/" } - sh "/usr/bin/rsync -v ${env.BUILD_DIR}/${versioned} grl-cdn:/root/gr-cdn/" - } } } |
