Maven Program can’t save Execute shell

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Blocker
    • Component/s: core
    • Environment:

      When I configure Execute shell in a Maven project, clicking save or apply results in an interface error at /jenkins/job/cqu-tp-prd-new/configSubmit, and it cannot be saved. My shell script is as follows:

      cd tp-runecho "===============Dynamic Parameter Configuration begin===============>"APPLICATION_NAME=tpecho "image and container name is $APPLICATION_NAME"PORT=10089TAG=prd-${BUILD_NUMBER}
      cp -r /var/jenkins_home/agent target/echo "===============Dynamic Parameter Configuration end===============>"
      echo "===============Login to Harbor===============>"echo ${password} | docker login -u ${username}  --password-stdin
      echo "build docker image"docker build --build-arg APP_NAME=cqu-tp --build-arg PORT=$PORT -f /var/jenkins_home/k8s-config/docker/DockerfileAgent -t $APPLICATION_NAME:$TAG .
      echo "current docker images:"docker images | grep $APPLICATION_NAME
      echo "docker tag =====>"docker tag $APPLICATION_NAME:$TAG  61.128.133.74:86/uni/$APPLICATION_NAME:$TAG
      echo "docker push =====>"docker push 61.128.133.74:86/uni/$APPLICATION_NAME:$TAG 

      However, if I only write some simple commands, it can be saved successfully, for example:

      kubectl config use-context jw-prodx
      kubectl config current-context 

      On another page, the error message shows: Uncaught SecurityError: Failed to read a named property 'applyCompletionHandler' from 'Window': Blocked a frame with origin "http://172.20.216.73:8080" from accessing a cross-origin frame.I can guarantee that my Jenkins URL configuration is correct. How should I troubleshoot and resolve this issue?

            Assignee:
            Unassigned
            Reporter:
            何
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: