Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69256

Exception when publishing, exception message [Exec exit status not zero. Status [23]]

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ssh-plugin
    • None

      I am trying to push a index.html file from my jenkins server to ansible server.

      The command I have setup is rsync -avh /var/lib/jenkins/workspace/DevOpsProject1/.html  root@172.31.37.69 /opt/index.html  .*

      But the HTML is not transferring to the Ansible server and throwing the below exception

       
      ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [23]]
      Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE

          [JENKINS-69256] Exception when publishing, exception message [Exec exit status not zero. Status [23]]

          Kiran Behera added a comment - - edited

          Started by user
          Kiran Kumar Behera
          Running as SYSTEM
          Building in workspace /var/lib/jenkins/workspace/DevOpsProject1
          The recommended git tool is: NONE
          No credentials specified
          > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/DevOpsProject1/.git # timeout=10
          Fetching changes from the remote Git repository
          > git config remote.origin.url
          https://github.com/kirandevops089/DevOpsProject1.git

          1. timeout=10
            Fetching upstream changes from
            https://github.com/kirandevops089/DevOpsProject1.git
            > git --version # timeout=10
            > git --version # 'git version 2.37.1'
            > git fetch --tags --force --progress –
            https://github.com/kirandevops089/DevOpsProject1.git
            +refs/heads/:refs/remotes/origin/ # timeout=10
            > git rev-parse refs/remotes/origin/main^{commit} # timeout=10
            Checking out Revision 6a055a1d9b1daa51f1b3efadb9752531a052549a (refs/remotes/origin/main)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f 6a055a1d9b1daa51f1b3efadb9752531a052549a # timeout=10
            Commit message: "Create index.html"
            > git rev-list --no-walk 6a055a1d9b1daa51f1b3efadb9752531a052549a # timeout=10
            SSH: Connecting from host [jenkins]
            SSH: Connecting with configuration [jenkins] ...
            SSH: EXEC: completed after 200 ms
            SSH: Disconnecting configuration [jenkins] ...
            ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [23]]
            Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
            SSH: Connecting from host [jenkins]
            SSH: Connecting with configuration [Ansible] ...
            SSH: EXEC: completed after 603 ms
            SSH: Disconnecting configuration [Ansible] ...
            ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]
            Finished: UNSTABLE

          Kiran Behera added a comment - - edited Started by user Kiran Kumar Behera Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/DevOpsProject1 The recommended git tool is: NONE No credentials specified > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/DevOpsProject1/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/kirandevops089/DevOpsProject1.git timeout=10 Fetching upstream changes from https://github.com/kirandevops089/DevOpsProject1.git > git --version # timeout=10 > git --version # 'git version 2.37.1' > git fetch --tags --force --progress – https://github.com/kirandevops089/DevOpsProject1.git +refs/heads/ :refs/remotes/origin/ # timeout=10 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 Checking out Revision 6a055a1d9b1daa51f1b3efadb9752531a052549a (refs/remotes/origin/main) > git config core.sparsecheckout # timeout=10 > git checkout -f 6a055a1d9b1daa51f1b3efadb9752531a052549a # timeout=10 Commit message: "Create index.html" > git rev-list --no-walk 6a055a1d9b1daa51f1b3efadb9752531a052549a # timeout=10 SSH: Connecting from host [jenkins] SSH: Connecting with configuration [jenkins] ... SSH: EXEC: completed after 200 ms SSH: Disconnecting configuration [jenkins] ... ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [23] ] Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE SSH: Connecting from host [jenkins] SSH: Connecting with configuration [Ansible] ... SSH: EXEC: completed after 603 ms SSH: Disconnecting configuration [Ansible] ... ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1] ] Finished: UNSTABLE

            Unassigned Unassigned
            kiran_123 Kiran Behera
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: