title: GitLab CI syntax to write FOR loop statement?
body: <p>Below is the script mentioned in the gitlab-ci.yml file. This GitLab CI configuration is valid. But, when the CI/CD build is run, the job fails. Is it something to do with the FOR loop syntax? </p>
  
  <pre><code>deploy_dv:
    stage: deploy_dv
    variables:
      GIT_STRATEGY: none
  script:
    - echo "Deploying Artifacts..."
    - echo "Configure JFrog CLI with parameters of your Artifactory instance"
    - 'c:\build-tools\JFROG-CLI\jfrog rt config --url  %ARTIFACTORY_WEBSITE% --user %ARTIFACTORY_USER% --apikey %APIKEY%'
    - 'cd ..\artifacts'
    - 'SETLOCAL ENABLEDELAYEDEXPANSION'
    - FOR %%i in (*) do (
          'c:\build-tools\curl\bin\curl.exe --header "PRIVATE-TOKEN:%HCA_ACCESS_TOKEN%" --insecure https://code.example.com/api/repository/tags/%CI_COMMIT_TAG% | c:\build-tools\jq\jq-win64.exe ".release.description" &gt; temp.txt'
           'set /p releasenote=&lt;temp.txt'
           'rem del temp.txt'
           'set mydate=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%'
           'c:\build-tools\JFROG-CLI\jfrog rt u "%%i" %ARTIFACTORY_ROOT_PATH%/%PROJECT_NAME%/%%i --build-name=%%i --build-number=%BUILDVERSION%  --props releasenote=%releasenote%;releaseversion=%BUILDVERSION%;releasedate=%mydate% --flat=false'
       )
  
      - '%CURL% -X POST -F token=%REPOSITORY_TOKEN% -F ref=master  -F "variables[RELEASE]=false" -F "variables[PROGRAM]=test" --insecure https://code.example.com/api/repository/trigger'
  
    only:
    - /^(dv-)(\d+\.)(\d+\.)(\d+)$/
  </code></pre>
  
  <p>I get this below error:</p>
  
  <pre><code>  $ echo "Deploying Artifacts..."
  "Deploying Artifacts..."
  $ echo "Configure JFrog CLI with parameters of your Artifactory instance"
  "Configure JFrog CLI with parameters of your Artifactory instance"
  $ c:\build-tools\JFROG-CLI\jfrog rt config --url  %ARTIFACTORY_WEBSITE% --user %ARTIFACTORY_USER% --apikey %APIKEY%
  Artifactory server ID [Default-Server]: $ cd ..\artifacts
  $ SETLOCAL ENABLEDELAYEDEXPANSION
  $ FOR %%i in (*) do ( 'c:\build-tools\curl\bin\curl.exe --header "PRIVATE-TOKEN:%HCA_ACCESS_TOKEN%" --insecure  https://code.example.com/api/repository/tags/%CI_COMMIT_TAG% | c:\build-tools\jq\jq-win64.exe ".release.description" &gt; temp.txt' 'set /p releasenote=&lt;temp.txt' 'rem del temp.txt' 'set mydate=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%' 'c:\build-tools\JFROG-CLI\jfrog rt u "%%i" %ARTIFACTORY_ROOT_PATH%/%PROJECT_NAME%/%%i --build-name=%%i --build-number=%BUILDVERSION%  --props releasenote=%releasenote%;releaseversion=%BUILDVERSION%;releasedate=%mydate% --flat=false' )
  The filename, directory name, or volume label syntax is incorrect.
  ERROR: Job failed: exit status 255
  </code></pre>