Skip to content

Commit

Permalink
Update JenkinsFile
Browse files Browse the repository at this point in the history
  • Loading branch information
fellrock committed Mar 9, 2024
1 parent fb76a37 commit 77edce2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jenkins/jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ pipeline {
steps {
script {
try {
def curlOutput = sh(script: 'curl -T . http://172.17.0.5:80/mnt/user/appdata/nginx/www', returnStdout: true, returnStatus: true).trim()
def curlCommand = 'curl -T . http://172.17.0.5:80/mnt/user/appdata/nginx/www'
echo "Running command: ${curlCommand}"

def curlOutput = sh(script: curlCommand, returnStdout: true, returnStatus: true).trim()
def curlExitCode = sh(script: 'echo $?', returnStatus: true).trim()

echo "curl result: ${curlExitCode}"
Expand Down

0 comments on commit 77edce2

Please sign in to comment.