Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Branch indexing
Connecting to https://api.github.com using XXXX/****** (github-XXXX)
Cloning the remote Git repository
Cloning repository https://github.com/ORGA/REPO.git
> /usr/bin/git init /var/lib/jenkins/workspace/REPO-git/REPO/coverage@script # timeout=10
Fetching upstream changes from https://github.com/ORGA/REPO.git
> /usr/bin/git --version # timeout=10
using .gitcredentials to set credentials
> /usr/bin/git config --local credential.username XXXX # timeout=10
> /usr/bin/git config --local credential.helper store --file=/tmp/git7623114435221419861.credentials # timeout=10
> /usr/bin/git -c core.askpass=true fetch --tags --progress https://github.com/ORGA/REPO.git +refs/heads/*:refs/remotes/origin/*
> /usr/bin/git config --local --remove-section credential # timeout=10
> /usr/bin/git config remote.origin.url https://github.com/ORGA/REPO.git # timeout=10
> /usr/bin/git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> /usr/bin/git config remote.origin.url https://github.com/ORGA/REPO.git # timeout=10
Fetching upstream changes from https://github.com/ORGA/REPO.git
using .gitcredentials to set credentials
> /usr/bin/git config --local credential.username XXXX # timeout=10
> /usr/bin/git config --local credential.helper store --file=/tmp/git6585847113776145641.credentials # timeout=10
> /usr/bin/git -c core.askpass=true fetch --tags --progress https://github.com/ORGA/REPO.git +refs/heads/*:refs/remotes/origin/*
> /usr/bin/git config --local --remove-section credential # timeout=10
> /usr/bin/git config remote.origin1.url https://github.com/ORGA/REPO.git # timeout=10
Fetching upstream changes from https://github.com/ORGA/REPO.git
using .gitcredentials to set credentials
> /usr/bin/git config --local credential.username XXXX # timeout=10
> /usr/bin/git config --local credential.helper store --file=/tmp/git8938749886308565641.credentials # timeout=10
> /usr/bin/git -c core.askpass=true fetch --tags --progress https://github.com/ORGA/REPO.git +refs/pull/*/merge:refs/remotes/origin/pr/*
> /usr/bin/git config --local --remove-section credential # timeout=10
Checking out Revision 50426bc55dba6f4543a06640ba4b3707b7863513 (coverage)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 50426bc55dba6f4543a06640ba4b3707b7863513
First time build. Skipping changelog.
[Pipeline] properties
[Pipeline] node
Running on master in /var/lib/jenkins/workspace/REPO-git/REPO/coverage
[Pipeline] {
[Pipeline] stage (Checkout)
Entering stage Checkout
Proceeding
[Pipeline] checkout
[Pipeline] sh
[coverage] Running shell script
+ set -x
+ git submodule foreach 'git reset --hard || true'
fatal: Not a git repository (or any parent up to mount point /srv)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
+ true
+ git reset --hard
fatal: Not a git repository (or any parent up to mount point /srv)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
+ true
+ git submodule update --init
fatal: Not a git repository (or any parent up to mount point /srv)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
+ true
[Pipeline] stash
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
GitHub has been notified of this commit’s build result
ERROR: No files included in stash
Finished: FAILURE
@Flow86
Copy link
Author

Flow86 commented Jul 28, 2016

oh thats the first stage of the Jenkinsfile:

node('master') {
    stage name:"Checkout", concurrency:1
    checkout scm
    sh """set -x
          git submodule foreach "git reset --hard || true" || true
          git reset --hard || true
          git submodule update --init || true
       """

    stash includes: '**, .git/', excludes: 'ws/**', name: 'source', useDefaultExcludes: false

    sh "env"

    wspwd = pwd()
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment