Started by GitLab push by Alex Muravya Lightweight checkout support not available, falling back to full checkout. Checking out git https://gitlab.com/yasys/hub2swarm.git into /var/lib/jenkins/workspace/Hub2Swarm@script to read Jenkinsfile using credential kyberorg_gl > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/bin/git config remote.origin.url https://gitlab.com/yasys/hub2swarm.git # timeout=10 Fetching upstream changes from https://gitlab.com/yasys/hub2swarm.git > /usr/bin/git --version # timeout=10 using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git fetch --tags --progress https://gitlab.com/yasys/hub2swarm.git +refs/heads/*:refs/remotes/origin/* # timeout=10 skipping resolution of commit remotes/origin/master, since it originates from another repository Seen branch in repository origin/master Seen 1 remote branch > /usr/bin/git show-ref --tags -d # timeout=10 Checking out Revision 06e659105aba786d09400530a16526950458915b (origin/master) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f 06e659105aba786d09400530a16526950458915b # timeout=10 Commit message: "Build" > /usr/bin/git rev-list --no-walk 40a2fe2829bf07e638abf7cf34e81f2f9f6dce76 # timeout=10 Running in Durability level: MAX_SURVIVABILITY Loading library common-pipe@2.3.3 Attempting to resolve 2.3.3 from remote references... > /usr/bin/git --version # timeout=10 using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git ls-remote -h https://gitlab.com/yasys/common-pipe.git # timeout=10 Could not find 2.3.3 in remote references. Pulling heads to local for deep search... > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Setting origin to https://gitlab.com/yasys/common-pipe.git > /usr/bin/git config remote.origin.url https://gitlab.com/yasys/common-pipe.git # timeout=10 Fetching origin... Fetching upstream changes from origin > /usr/bin/git --version # timeout=10 > /usr/bin/git config --get remote.origin.url # timeout=10 using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > /usr/bin/git rev-parse 2.3.3^{commit} # timeout=10 > /usr/bin/git branch -a -v --no-abbrev --contains 78e505581bfc1d87a0194b7a0531760b3985472d # timeout=10 Selected match: master revision 78e505581bfc1d87a0194b7a0531760b3985472d using credential kyberorg_gl > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/bin/git config remote.origin.url https://gitlab.com/yasys/common-pipe.git # timeout=10 Fetching without tags Fetching upstream changes from https://gitlab.com/yasys/common-pipe.git > /usr/bin/git --version # timeout=10 using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git fetch --no-tags --progress https://gitlab.com/yasys/common-pipe.git +refs/heads/*:refs/remotes/origin/* # timeout=10 skipping resolution of commit remotes/origin/master, since it originates from another repository Checking out Revision 78e505581bfc1d87a0194b7a0531760b3985472d (master) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f 78e505581bfc1d87a0194b7a0531760b3985472d # timeout=10 Commit message: "Merge branch 'steps-fix' into 'master'" > /usr/bin/git rev-list --no-walk 78e505581bfc1d87a0194b7a0531760b3985472d # timeout=10 [Pipeline] Start of Pipeline [Pipeline] getContext [Pipeline] node Running on Jenkins in /var/lib/jenkins/workspace/Hub2Swarm [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout using credential kyberorg_gl Cloning the remote Git repository Cloning repository https://gitlab.com/yasys/hub2swarm.git > /usr/bin/git init /var/lib/jenkins/workspace/Hub2Swarm # timeout=10 Fetching upstream changes from https://gitlab.com/yasys/hub2swarm.git > /usr/bin/git --version # timeout=10 using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git fetch --tags --progress https://gitlab.com/yasys/hub2swarm.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > /usr/bin/git config remote.origin.url https://gitlab.com/yasys/hub2swarm.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://gitlab.com/yasys/hub2swarm.git # timeout=10 Fetching upstream changes from https://gitlab.com/yasys/hub2swarm.git using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git fetch --tags --progress https://gitlab.com/yasys/hub2swarm.git +refs/heads/*:refs/remotes/origin/* # timeout=10 skipping resolution of commit remotes/origin/master, since it originates from another repository Seen branch in repository origin/master Seen 1 remote branch > /usr/bin/git show-ref --tags -d # timeout=10 Checking out Revision 06e659105aba786d09400530a16526950458915b (origin/master) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f 06e659105aba786d09400530a16526950458915b # timeout=10 Commit message: "Build" [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] withDockerRegistry $ docker login -u kyberorg -p ******** https://index.docker.io/v1/ WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins/workspace/Hub2Swarm@tmp/c3141e67-75e8-42ba-9ecc-c44b84c3d099/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded [Pipeline] { [Pipeline] sh + docker inspect -f . yasys/jobbari:1.7.0 . [Pipeline] withDockerContainer Jenkins does not seem to be running inside a container $ docker run -t -d -u 108:112 -u root --privileged -v /opt/mvn/:/root/.m2 -w /var/lib/jenkins/workspace/Hub2Swarm -v /var/lib/jenkins/workspace/Hub2Swarm:/var/lib/jenkins/workspace/Hub2Swarm:rw,z -v /var/lib/jenkins/workspace/Hub2Swarm@tmp:/var/lib/jenkins/workspace/Hub2Swarm@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** yasys/jobbari:1.7.0 cat $ docker top 3a7651fa2b0d0caeedf32c817d86c3e4857d7f7c020ae4b32d697978863ad73d -eo pid,comm ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] timeout Timeout set to expire in 15 min [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] stage [Pipeline] { (Preparation) [Pipeline] script [Pipeline] { [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Execution info) [Pipeline] script [Pipeline] { [Pipeline] timeout 18:09:28 [2019-04-24T15:09:28.700Z] Timeout set to expire in 5 min 0 sec [Pipeline] { [Pipeline] sh 18:09:28 [2019-04-24T15:09:28.991Z] + set +x 18:09:28 [2019-04-24T15:09:28.991Z] [Runner info] 18:09:28 [2019-04-24T15:09:28.991Z] Hostname: 3a7651fa2b0d 18:09:29 [2019-04-24T15:09:29.242Z] Network Status: Host Online 18:09:29 [2019-04-24T15:09:29.242Z] 18:09:29 [2019-04-24T15:09:29.242Z] === Tools info === 18:09:29 [2019-04-24T15:09:29.493Z] Docker version: Docker version 18.09.5, build e8ff056dbc 18:09:29 [2019-04-24T15:09:29.493Z] 18:09:29 [2019-04-24T15:09:29.493Z] Maven version: Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T18:41:47Z) 18:09:29 [2019-04-24T15:09:29.493Z] Maven home: /opt/mvn 18:09:29 [2019-04-24T15:09:29.493Z] Java version: 1.8.0_212, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre 18:09:29 [2019-04-24T15:09:29.493Z] Default locale: en, platform encoding: UTF-8 18:09:29 [2019-04-24T15:09:29.493Z] OS name: "linux", version: "4.9.0-8-amd64", arch: "amd64", family: "unix" 18:09:29 [2019-04-24T15:09:29.493Z] 18:09:29 [2019-04-24T15:09:29.493Z] Requested by kyberorg [Pipeline] } [Pipeline] // timeout [Pipeline] timeout 18:09:29 [2019-04-24T15:09:29.572Z] Timeout set to expire in 5 min 0 sec [Pipeline] { [Pipeline] sh 18:09:29 [2019-04-24T15:09:29.862Z] + set +x 18:09:29 [2019-04-24T15:09:29.862Z] [Build info] 18:09:29 [2019-04-24T15:09:29.862Z] ===== Git info ===== 18:09:29 [2019-04-24T15:09:29.862Z] Git branch: master 18:09:29 [2019-04-24T15:09:29.862Z] Git commit: 06e659105aba786d09400530a16526950458915b 18:09:29 [2019-04-24T15:09:29.862Z] Git tag: - 18:09:29 [2019-04-24T15:09:29.862Z] 18:09:29 [2019-04-24T15:09:29.862Z] ===== Jenkins info ===== 18:09:29 [2019-04-24T15:09:29.862Z] Jenkins Job #31 18:09:29 [2019-04-24T15:09:29.862Z] Jenkins Job URL: https://ci.yadev.eu/job/Hub2Swarm/31/ 18:09:29 [2019-04-24T15:09:29.862Z] Jenkins Tag: jenkins-Hub2Swarm-31 18:09:29 [2019-04-24T15:09:29.862Z] 18:09:29 [2019-04-24T15:09:29.862Z] ===== Job Params ===== 18:09:29 [2019-04-24T15:09:29.862Z] 18:09:29 [2019-04-24T15:09:29.862Z] dockerRepo=yasys/hub2swarm 18:09:29 [2019-04-24T15:09:29.862Z] dockerStep=ee.yadev.pipe.commonpipe.Default@efe0381 18:09:29 [2019-04-24T15:09:29.862Z] javaStep=org.jenkinsci.plugins.workflow.cps.CpsClosure2@2e22044b 18:09:29 [2019-04-24T15:09:29.862Z] executionInfoStep=ee.yadev.pipe.commonpipe.Default@efe0381 18:09:29 [2019-04-24T15:09:29.862Z] hubUrl=https://cloud.docker.com/repository/docker 18:09:29 [2019-04-24T15:09:29.862Z] useDebugTag=false 18:09:29 [2019-04-24T15:09:29.862Z] mavenBuildOptions={addJavadoc=false, runTestsAsWell=false} 18:09:29 [2019-04-24T15:09:29.862Z] preparationStep=ee.yadev.pipe.commonpipe.Default@efe0381 18:09:29 [2019-04-24T15:09:29.862Z] stepTimeout=5 18:09:29 [2019-04-24T15:09:29.862Z] hubCredentialsId=docker-hub 18:09:29 [2019-04-24T15:09:29.862Z] class=class ee.yadev.pipe.commonpipe.Params 18:09:29 [2019-04-24T15:09:29.862Z] skipMavenTests=true 18:09:29 [2019-04-24T15:09:29.862Z] agent={image=yasys/jobbari, tag=1.7.0, args=-u root --privileged -v /opt/mvn/:/root/.m2} 18:09:29 [2019-04-24T15:09:29.862Z] verbose=false 18:09:29 [2019-04-24T15:09:29.862Z] mavenTestsTimeout=5 18:09:29 [2019-04-24T15:09:29.862Z] pipelineTimeout=15 18:09:29 [2019-04-24T15:09:29.862Z] hubUser=kyberorg 18:09:29 [2019-04-24T15:09:29.862Z] 18:09:29 [2019-04-24T15:09:29.862Z] ==== Environment Variables ===== 18:09:29 [2019-04-24T15:09:29.862Z] GIT_COMMITTER_NAME=Jenkins CI 18:09:29 [2019-04-24T15:09:29.862Z] gitlabSourceRepoURL=git@gitlab.com:yasys/hub2swarm.git 18:09:29 [2019-04-24T15:09:29.862Z] GIT_PREVIOUS_SUCCESSFUL_COMMIT=fdc4245a1b48c771cbb2a84ce4bd38867e55f4c8 18:09:29 [2019-04-24T15:09:29.862Z] GIT_AUTHOR_EMAIL=ci@yadev.eu 18:09:29 [2019-04-24T15:09:29.862Z] HOSTNAME=3a7651fa2b0d 18:09:29 [2019-04-24T15:09:29.862Z] gitlabAfter=06e659105aba786d09400530a16526950458915b 18:09:29 [2019-04-24T15:09:29.862Z] RUN_CHANGES_DISPLAY_URL=https://ci.yadev.eu/job/Hub2Swarm/31/display/redirect?page=changes 18:09:29 [2019-04-24T15:09:29.862Z] HUDSON_URL=https://ci.yadev.eu/ 18:09:29 [2019-04-24T15:09:29.862Z] NODE_LABELS=master 18:09:29 [2019-04-24T15:09:29.862Z] GIT_COMMIT=06e659105aba786d09400530a16526950458915b 18:09:29 [2019-04-24T15:09:29.862Z] HOME=/root 18:09:29 [2019-04-24T15:09:29.862Z] BUILD_URL=https://ci.yadev.eu/job/Hub2Swarm/31/ 18:09:29 [2019-04-24T15:09:29.862Z] GIT_AUTHOR_NAME=Jenkins CI 18:09:29 [2019-04-24T15:09:29.862Z] JENKINS_SERVER_COOKIE=durable-a20a2f40a8ef5813fe7ee1dcdca63f0d 18:09:29 [2019-04-24T15:09:29.862Z] gitlabTargetBranch=master 18:09:29 [2019-04-24T15:09:29.862Z] gitlabSourceRepoHttpUrl=https://gitlab.com/yasys/hub2swarm.git 18:09:29 [2019-04-24T15:09:29.862Z] WORKSPACE=/var/lib/jenkins/workspace/Hub2Swarm 18:09:29 [2019-04-24T15:09:29.862Z] gitlabMergeRequestLastCommit=06e659105aba786d09400530a16526950458915b 18:09:29 [2019-04-24T15:09:29.862Z] JAVA_VERSION=8u212 18:09:29 [2019-04-24T15:09:29.862Z] NODE_NAME=master 18:09:29 [2019-04-24T15:09:29.862Z] gitlabSourceRepoSshUrl=git@gitlab.com:yasys/hub2swarm.git 18:09:29 [2019-04-24T15:09:29.862Z] EXECUTOR_NUMBER=0 18:09:29 [2019-04-24T15:09:29.862Z] gitlabSourceRepoHomepage=https://gitlab.com/yasys/hub2swarm 18:09:29 [2019-04-24T15:09:29.862Z] GIT_BRANCH=origin/master 18:09:29 [2019-04-24T15:09:29.862Z] STAGE_NAME=Execution info 18:09:29 [2019-04-24T15:09:29.862Z] gitlabBranch=master 18:09:29 [2019-04-24T15:09:29.862Z] gitlabSourceBranch=master 18:09:29 [2019-04-24T15:09:29.862Z] gitlabUserEmail=kyberorg@yadev.eu 18:09:29 [2019-04-24T15:09:29.862Z] BUILD_DISPLAY_NAME=#31 18:09:29 [2019-04-24T15:09:29.862Z] HUDSON_HOME=/var/lib/jenkins 18:09:29 [2019-04-24T15:09:29.862Z] JOB_BASE_NAME=Hub2Swarm 18:09:29 [2019-04-24T15:09:29.862Z] DOCKER_REGISTRY_URL=https://index.docker.io/v1/ 18:09:29 [2019-04-24T15:09:29.862Z] JAVA_DEBIAN_VERSION=8u212-b01-1~deb9u1 18:09:29 [2019-04-24T15:09:29.862Z] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 18:09:29 [2019-04-24T15:09:29.862Z] BUILD_ID=31 18:09:29 [2019-04-24T15:09:29.862Z] BUILDING_FOR=kyberorg 18:09:29 [2019-04-24T15:09:29.862Z] gitlabActionType=PUSH 18:09:29 [2019-04-24T15:09:29.862Z] gitlabBefore=40a2fe2829bf07e638abf7cf34e81f2f9f6dce76 18:09:29 [2019-04-24T15:09:29.862Z] BUILD_TAG=jenkins-Hub2Swarm-31 18:09:29 [2019-04-24T15:09:29.862Z] JENKINS_URL=https://ci.yadev.eu/ 18:09:29 [2019-04-24T15:09:29.862Z] LANG=C.UTF-8 18:09:29 [2019-04-24T15:09:29.862Z] gitlabSourceRepoName=Hub2Swarm 18:09:29 [2019-04-24T15:09:29.862Z] JOB_URL=https://ci.yadev.eu/job/Hub2Swarm/ 18:09:29 [2019-04-24T15:09:29.862Z] GIT_URL=https://gitlab.com/yasys/hub2swarm.git 18:09:29 [2019-04-24T15:09:29.862Z] BUILD_NUMBER=31 18:09:29 [2019-04-24T15:09:29.862Z] gitlabSourceNamespace=Yet another Systems 18:09:29 [2019-04-24T15:09:29.862Z] JENKINS_NODE_COOKIE=ad38ea18-858f-4fff-9264-011dfcc1d67f 18:09:29 [2019-04-24T15:09:29.862Z] RUN_DISPLAY_URL=https://ci.yadev.eu/job/Hub2Swarm/31/display/redirect 18:09:29 [2019-04-24T15:09:29.862Z] HUDSON_SERVER_COOKIE=e746ebc0b92d9cbd 18:09:29 [2019-04-24T15:09:29.862Z] JOB_DISPLAY_URL=https://ci.yadev.eu/job/Hub2Swarm/display/redirect 18:09:29 [2019-04-24T15:09:29.862Z] CLASSPATH= 18:09:29 [2019-04-24T15:09:29.862Z] GIT_COMMITTER_EMAIL=ci@yadev.eu 18:09:29 [2019-04-24T15:09:29.862Z] JOB_NAME=Hub2Swarm 18:09:29 [2019-04-24T15:09:29.862Z] DOCKER_CONFIG=/var/lib/jenkins/workspace/Hub2Swarm@tmp/c3141e67-75e8-42ba-9ecc-c44b84c3d099 18:09:29 [2019-04-24T15:09:29.862Z] gitlabUserName=Alex Muravya 18:09:29 [2019-04-24T15:09:29.862Z] JAVA_HOME=/docker-java-home 18:09:29 [2019-04-24T15:09:29.862Z] PWD=/var/lib/jenkins/workspace/Hub2Swarm 18:09:29 [2019-04-24T15:09:29.862Z] GIT_PREVIOUS_COMMIT=40a2fe2829bf07e638abf7cf34e81f2f9f6dce76 18:09:29 [2019-04-24T15:09:29.862Z] Requested by kyberorg [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (JavaApp: Build and Test) [Pipeline] script [Pipeline] { [Pipeline] sh 18:09:30 [2019-04-24T15:09:30.294Z] /var/lib/jenkins/workspace/Hub2Swarm@tmp/durable-8fb2d8d7/script.sh: 1: /var/lib/jenkins/workspace/Hub2Swarm@tmp/durable-8fb2d8d7/script.sh: Syntax error: end of file unexpected (expecting "then") [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker: Build and Push) Stage "Docker: Build and Push" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] echo 18:09:30 [2019-04-24T15:09:30.635Z] One way or another, I have finished. Tsau! [Pipeline] sh 18:09:30 [2019-04-24T15:09:30.988Z] + set +x 18:09:30 [2019-04-24T15:09:30.988Z] Making workspace writable for correct cleanup 18:09:30 [2019-04-24T15:09:30.988Z] Done for kyberorg [Pipeline] deleteDir [Pipeline] echo 18:09:31 [2019-04-24T15:09:31.021Z] Perkele! I failed :( [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timestamps [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // withEnv [Pipeline] } $ docker stop --time=1 3a7651fa2b0d0caeedf32c817d86c3e4857d7f7c020ae4b32d697978863ad73d $ docker rm -f 3a7651fa2b0d0caeedf32c817d86c3e4857d7f7c020ae4b32d697978863ad73d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: script returned exit code 2 Finished: FAILURE