SuccessConsole Output

Triggered by GitLab Merge Request #16: admin_forge/new-release => master
Obtained Jenkinsfile from git git@forge.etsi.org:etsi-cti-admin/test-repo.git
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] node
Running on build3.forge.etsi.org in /home/jenkins/workspace/playground/test-jenkinsfile
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
using credential f9a9fd70-ea8b-4872-a9d5-d1fb1cf8123e
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url git@forge.etsi.org:etsi-cti-admin/test-repo.git # timeout=10
Fetching upstream changes from git@forge.etsi.org:etsi-cti-admin/test-repo.git
 > git --version # timeout=10
using GIT_SSH to set credentials 
 > git fetch --tags --progress git@forge.etsi.org:etsi-cti-admin/test-repo.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse a1b641ed537ea4f44cb974359263caed282c2a3c^{commit} # timeout=10
 > git branch -a -v --no-abbrev --contains a1b641ed537ea4f44cb974359263caed282c2a3c # timeout=10
Checking out Revision a1b641ed537ea4f44cb974359263caed282c2a3c (origin/new-release, origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f a1b641ed537ea4f44cb974359263caed282c2a3c
Commit message: "conflict resolved"
 > git rev-list --no-walk a1b641ed537ea4f44cb974359263caed282c2a3c # timeout=10
 > git rev-list --no-walk 9c9fba886aa24bfdb0c857a327e709acf81253df # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (checkout)
[Pipeline] sh
+ printenv
+ sort
BUILD_DISPLAY_NAME=#86
BUILD_ID=86
BUILD_NUMBER=86
BUILD_TAG=jenkins-playground-test-jenkinsfile-86
BUILD_URL=https://forge.etsi.org/jenkins/job/playground/job/test-jenkinsfile/86/
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1003/bus
EXECUTOR_NUMBER=0
GIT_BRANCH=origin/new-release
GIT_COMMIT=a1b641ed537ea4f44cb974359263caed282c2a3c
gitlabActionType=MERGE
gitlabBranch=new-release
gitlabMergedByUser=mullers
gitlabMergeRequestId=2742
gitlabMergeRequestIid=16
gitlabMergeRequestLastCommit=a1b641ed537ea4f44cb974359263caed282c2a3c
gitlabMergeRequestState=opened
gitlabMergeRequestTargetProjectId=3
gitlabMergeRequestTitle=conflict resolved
gitlabSourceBranch=new-release
gitlabSourceNamespace=admin_forge
gitlabSourceRepoHomepage=https://forge.etsi.org/rep/etsi-cti-admin/test-repo
gitlabSourceRepoHttpUrl=https://forge.etsi.org/rep/etsi-cti-admin/test-repo.git
gitlabSourceRepoName=test-repo
gitlabSourceRepoSshUrl=git@forge.etsi.org:etsi-cti-admin/test-repo.git
gitlabSourceRepoURL=git@forge.etsi.org:etsi-cti-admin/test-repo.git
gitlabTargetBranch=master
gitlabTargetNamespace=admin_forge
gitlabTargetRepoHttpUrl=https://forge.etsi.org/rep/etsi-cti-admin/test-repo.git
gitlabTargetRepoName=test-repo
gitlabTargetRepoSshUrl=git@forge.etsi.org:etsi-cti-admin/test-repo.git
gitlabUserEmail=seb.muller@gmx.fr
gitlabUserName=mullers
GIT_PREVIOUS_COMMIT=a1b641ed537ea4f44cb974359263caed282c2a3c
GIT_PREVIOUS_SUCCESSFUL_COMMIT=a1b641ed537ea4f44cb974359263caed282c2a3c
GIT_URL=git@forge.etsi.org:etsi-cti-admin/test-repo.git
HOME=/home/jenkins
HUDSON_COOKIE=e598956d-9e50-4980-8fc3-6cf503403c31
HUDSON_HOME=/var/lib/jenkins
HUDSON_SERVER_COOKIE=7224e361f92dcf07
HUDSON_URL=https://forge.etsi.org/jenkins/
JENKINS_HOME=/var/lib/jenkins
JENKINS_NODE_COOKIE=e34bda55-911a-473b-86f1-805ff843ac9d
JENKINS_SERVER_COOKIE=durable-ef9e291032ec9a8240c408a3a56c927c
JENKINS_URL=https://forge.etsi.org/jenkins/
JOB_BASE_NAME=test-jenkinsfile
JOB_DISPLAY_URL=https://forge.etsi.org/jenkins/job/playground/job/test-jenkinsfile/display/redirect
JOB_NAME=playground/test-jenkinsfile
JOB_URL=https://forge.etsi.org/jenkins/job/playground/job/test-jenkinsfile/
LANG=en_US.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LOGNAME=jenkins
MAIL=/var/mail/jenkins
NODE_LABELS=build3.forge.etsi.org docker selenium
NODE_NAME=build3.forge.etsi.org
OLDPWD=/home/jenkins
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=/home/jenkins/workspace/playground/test-jenkinsfile
RUN_CHANGES_DISPLAY_URL=https://forge.etsi.org/jenkins/job/playground/job/test-jenkinsfile/86/display/redirect?page=changes
RUN_DISPLAY_URL=https://forge.etsi.org/jenkins/job/playground/job/test-jenkinsfile/86/display/redirect
SHELL=/bin/bash
SHLVL=1
SSH_CLIENT=172.29.10.26 33850 22
SSH_CONNECTION=172.29.10.26 33850 172.29.10.31 22
STAGE_NAME=checkout
stf569_deploy_pass=PCWvfcqD55ctYhrihe1X
stf569_deploy_user=gitlab+deploy-token-2
USER=jenkins
_=/usr/bin/java
WORKSPACE=/home/jenkins/workspace/playground/test-jenkinsfile
XDG_RUNTIME_DIR=/run/user/1003
XDG_SESSION_ID=1419
[Pipeline] checkout
using credential f9a9fd70-ea8b-4872-a9d5-d1fb1cf8123e
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url git@forge.etsi.org:etsi-cti-admin/test-repo.git # timeout=10
Fetching upstream changes from git@forge.etsi.org:etsi-cti-admin/test-repo.git
 > git --version # timeout=10
using GIT_SSH to set credentials 
 > git fetch --tags --progress git@forge.etsi.org:etsi-cti-admin/test-repo.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse a1b641ed537ea4f44cb974359263caed282c2a3c^{commit} # timeout=10
 > git branch -a -v --no-abbrev --contains a1b641ed537ea4f44cb974359263caed282c2a3c # timeout=10
Checking out Revision a1b641ed537ea4f44cb974359263caed282c2a3c (origin/new-release, origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f a1b641ed537ea4f44cb974359263caed282c2a3c
Commit message: "conflict resolved"
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (say hello)
[Pipeline] echo
Hello world
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (say goodbye)
[Pipeline] echo
Goodbye
[Pipeline] sh
+ pwd
+ echo /home/jenkins/workspace/playground/test-jenkinsfile
/home/jenkins/workspace/playground/test-jenkinsfile
[Pipeline] sh
+ pwd
/home/jenkins/workspace/playground/test-jenkinsfile
[Pipeline] sh
+ ls
description.md
esrp.tplan2
example.yaml
img_bank
Jenkinsfile
mc-file
seb-1
seb-1-proposed
settings.md
test.txt
test.xml
[Pipeline] echo
again
[Pipeline] sh
+ cat Jenkinsfile
pipeline {

	agent any
	
stages {
  stage('checkout'){
    steps{
      sh 'printenv | sort'
      checkout changelog: true, poll: false, scm: [
                        $class: 'GitSCM', branches: [[name: "${env.gitlabAfter}"]],
                        doGenerateSubmoduleConfigurations: false,
                        extensions: [[$class: 'PreBuildMerge', options: [
                        fastForwardMode: 'FF', mergeRemote: 'origin', mergeStrategy: 'DEFAULT', 
                        mergeTarget: "${env.gitlabTargetBranch}"]]
                        ],
                        submoduleCfg: [],
                        userRemoteConfigs: [[
                        credentialsId: 'f9a9fd70-ea8b-4872-a9d5-d1fb1cf8123e', 
                        url: "${env.gitlabSourceRepoSshUrl}" ]]
                    ]
    }
  }
    
  stage("say hello"){
    steps{
        echo "Hello world"
        }
  }
  
  stage("say goodbye"){
    steps{
        echo "Goodbye"
        sh 'echo $(pwd)'
        sh 'pwd'
        sh 'ls'
        echo "again"
        sh 'cat Jenkinsfile'
        sh 'git log --oneline -n 5'
        sh 'git status -sb'

        updateGitlabCommitStatus name: 'Build', state: 'success'
        }
  }
}
  post {
    always {
        script{
            RECIPIENT = """${sh(
                    returnStdout: true,
                    script: "git log --format='%ae' HEAD^!"
                )}"""
	    }
	                echo "RECIPIENT: ${RECIPIENT}"
   
            mail to: "${RECIPIENT}",
			    subject: "[Forge] Validation concluded: ${currentBuild.fullDisplayName}",
			    body: "Job done. "+
			        "Review at ${env.BUILD_URL}"  
	  }
  }
}
[Pipeline] sh
+ git log --oneline -n 5
a1b641e conflict resolved
102fa27 Merge branch 'master' into 'new-release'
74e0755 new-release addition
4b83ba3 master addition
5f8bf61 edit 1
[Pipeline] sh
+ git status -sb
## HEAD (no branch)
[Pipeline] updateGitlabCommitStatus
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ git log --format=%ae HEAD^!
[Pipeline] }
[Pipeline] // script
[Pipeline] echo
RECIPIENT: seb.muller@gmx.fr

[Pipeline] mail
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS