Skip to content
Success

Console Output

Started by user Johannes Faltermeier
Running as Johannes Faltermeier
Agent basic-tr19w is provisioned from template basic
---
apiVersion: "v1"
kind: "Pod"
metadata:
  annotations: {}
  labels:
    jenkins: "slave"
    jenkins/label: ""
  name: "basic-tr19w"
spec:
  containers:
  - env:
    - name: "JENKINS_SECRET"
      value: "********"
    - name: "JENKINS_TUNNEL"
      value: "jenkins-discovery.edapt.svc.cluster.local:50000"
    - name: "JENKINS_AGENT_NAME"
      value: "basic-tr19w"
    - name: "JENKINS_REMOTING_JAVA_OPTS"
      value: "-showversion -XshowSettings:vm -Xmx256m -Dsun.zip.disableMemoryMapping=true\
        \ -Dorg.jenkinsci.remoting.engine.JnlpProtocol3.disabled=true -Dorg.jenkinsci.plugins.gitclient.CliGitAPIImpl.useSETSID=true"
    - name: "JAVA_TOOL_OPTIONS"
      value: ""
    - name: "_JAVA_OPTIONS"
      value: ""
    - name: "OPENJ9_JAVA_OPTIONS"
      value: "-XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningCompactOnIdle -XX:+IdleTuningGcOnIdle"
    - name: "JENKINS_NAME"
      value: "basic-tr19w"
    - name: "JENKINS_AGENT_WORKDIR"
      value: "/home/jenkins/agent"
    - name: "JENKINS_URL"
      value: "http://jenkins-ui.edapt.svc.cluster.local/edapt/"
    image: "docker.io/eclipsecbi/jiro-agent-basic:remoting-4.2.1"
    imagePullPolicy: "Always"
    name: "jnlp"
    resources:
      limits:
        memory: "4096Mi"
        cpu: "2000m"
      requests:
        memory: "4096Mi"
        cpu: "1000m"
    securityContext:
      privileged: false
    tty: true
    volumeMounts:
    - mountPath: "/home/jenkins/.m2/toolchains.xml"
      name: "m2-dir"
      readOnly: true
      subPath: "toolchains.xml"
    - mountPath: "/home/jenkins/.mavenrc"
      name: "m2-dir"
      readOnly: true
      subPath: ".mavenrc"
    - mountPath: "/opt/tools"
      name: "volume-0"
      readOnly: false
    - mountPath: "/home/jenkins"
      name: "volume-2"
      readOnly: false
    - mountPath: "/home/jenkins/.m2/repository"
      name: "volume-3"
      readOnly: false
    - mountPath: "/home/jenkins/.m2/settings-security.xml"
      name: "m2-secret-dir"
      readOnly: true
      subPath: "settings-security.xml"
    - mountPath: "/home/jenkins/.m2/wrapper"
      name: "volume-4"
      readOnly: false
    - mountPath: "/home/jenkins/.m2/settings.xml"
      name: "m2-secret-dir"
      readOnly: true
      subPath: "settings.xml"
    - mountPath: "/home/jenkins/.ssh"
      name: "volume-1"
      readOnly: false
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
    workingDir: "/home/jenkins/agent"
  nodeSelector:
    beta.kubernetes.io/os: "linux"
  restartPolicy: "Never"
  securityContext: {}
  volumes:
  - name: "volume-0"
    persistentVolumeClaim:
      claimName: "tools-claim-jiro-edapt"
      readOnly: true
  - name: "m2-secret-dir"
    secret:
      secretName: "m2-secret-dir"
  - emptyDir:
      medium: ""
    name: "volume-2"
  - configMap:
      name: "m2-dir"
    name: "m2-dir"
  - configMap:
      name: "known-hosts"
    name: "volume-1"
  - emptyDir:
      medium: ""
    name: "workspace-volume"
  - emptyDir:
      medium: ""
    name: "volume-4"
  - emptyDir:
      medium: ""
    name: "volume-3"

Building remotely on basic-tr19w in workspace /home/jenkins/agent/workspace/tmp
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent]   Exec ssh-agent (binary ssh-agent on a remote machine)
$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-XjR4oz9tOTG9/agent.71
SSH_AGENT_PID=73
[ssh-agent] Started.
Running ssh-add (command line suppressed)
Identity added: /home/jenkins/agent/workspace/tmp@tmp/private_key_1262275787367170546.key (/home/jenkins/agent/workspace/tmp@tmp/private_key_1262275787367170546.key)
[ssh-agent] Using credentials genie.edapt (ssh://genie.edapt@projects-storage.eclipse.org)
[tmp] $ /bin/sh /tmp/jenkins1551447519695406762.sh
Last login: Fri Oct 30 10:28:58 2020 from 172.30.42.90

cat /shared/rt/rap/scripts/comp-repo.sh
exit 0

				build.eclipse.org
 
                                      ***
Please be aware that this server must be used for purposes approved by the 
Eclipse Management Organization (EMO) and/or an Eclipse Project Management 
Committee (PMC).

Using this server to establish outbound connections or to open ports on 
remote systems is PERMITTED, provided usage is in accordance with the 
EMO or your project's PMC. Please contact webmaster@eclipse.org for info. 

                                      ***

- To access the downloads area, type: cd downloads
- To change your password, please log in to http://portal.eclipse.org/
- Everything you need is in:
  - /home/data/httpd/download.eclipse.org, archive.eclipse.org
  - /cvsroot, /svnroot and /gitroot
  - /shared

                                      ***

- Do not use your user home directory as a working directory (except
  local *build accounts)

- Use /shared as a working directory, and to temporarily store build
  artifacts.  It is accessible via http://build.eclipse.org/(directory)

- Please note: /shared and *build home directories are snapshot, not backed up

- Using local filesystems (:local:/cvsroot, etc) for code repository access
  will be faster and more reliable than user pserver.

- http://dev.eclipse.org/cacti/ for build server & Hudson health


If your prompt is r$ and you are disconnected after a command, you have a 
restricted shell.  Please login to the portal and request a real shell if you
really need one.  New Git repos can be created without a shell by using:

    initrepo /gitroot/path/to/repo.git


[?1034hgenie.edapt@build:~> cat /shared/rt/rap/scripts/comp-repo.sh
#!/bin/bash
#
# Tool to maintain p2 composite repositories

USAGE="Usage:
  `basename "$0"` <repo-dir> [options] operation, operation ...
  Options:
    --name <repo name>
      the repository name
    --eclipse <eclipse install dir>
      the eclipse installation to use, can also be provided as \$ECLIPSE_DIR
  Operations:
    add <child>
      adds a child repository to the composite repository
      <child> can be a directory or a URL
    remove <child>
      removes a child repository to the composite repository
      <child> can be a directory or a URL

Examples:
  Create a composite repository with subfolder build-01 as first child:
    $0 /path/to/repo --name \"My repository\" add build-01
  Add childs build-05 and build-06, remove build-01:
    $0 /path/to/repo add build-05 add build-06 remove build-01
"

fail() {
  echo Composite Repository Tool
  if [ $# -gt 0 ]; then
    echo -e "Error:\n  $1"
  fi
  echo "$USAGE"
  exit 1
}

if [ "$#" -lt 1 ]; then
  fail "Missing parameter <repo-dir>"
fi

repoDir=`readlink -nm "$1"`
shift
if [ ! -d "$repoDir" ]; then
  fail "Directory does not exist: $repoDir"
fi

repoName=
addRepos=
removeRepos=

while [ "$#" -gt 0 ]; do
  param="$1"
  shift
  test -z "$1" && fail "Missing parameter for '$param'"
  case "$param" in
    -n|--name)
      repoName="$1"
      shift
      ;;
    --eclipse)
      ECLIPSE_DIR="$1"
      shift
      ;;
    add)
      addRepos="$addRepos <repository location=\"$1\" />"
      shift
      ;;
    remove)
      removeRepos="$removeRepos <repository location=\"$1\" />"
      shift
      ;;
    *)
      fail "Illegal parameter: $param"
      ;;
  esac
done

if [ -z "$addRepos" -a -z "$removeRepos" ]; then
  fail "At least one add or remove operation must be given"
fi

# Check Eclipse dir
if [ -z "$ECLIPSE_DIR" ]; then
  fail "Missing ECLIPSE_DIR, must point to an Eclipse installation"
fi

if [ ! -d "$ECLIPSE_DIR/plugins" ]; then
  fail "Invalid ECLIPSE_DIR: $ECLIPSE_DIR, must point to an Eclipse installation"
fi

# Find Equinox launcher
launcher=$ECLIPSE_DIR/plugins/`ls -1 $ECLIPSE_DIR/plugins 2> /dev/null | grep launcher_ | tail -n 1`
echo "Using Equinox launcher: $launcher"

TMPDIR=$HOME/tmp
mkdir -p $TMPDIR
tmpfile=`mktemp`
cat > "$tmpfile" <<EOM
<?xml version="1.0" encoding="UTF-8"?>
<project name="p2 composite repository">
  <target name="default">
    <p2.composite.repository>
      <repository compressed="true" location="${repoDir}" name="${repoName}" />
      <add>
        ${addRepos}
      </add>
      <remove>
        ${removeRepos}
      </remove>
    </p2.composite.repository>
  </target>
</project>
EOM

java -cp $launcher org.eclipse.core.launcher.Main \
    -application org.eclipse.ant.core.antRunner \
    -buildfile "$tmpfile" \
    default

rm "$tmpfile"

cat > "$repoDir/p2.index" <<EOM
version=1
metadata.repository.factory.order=compositeContent.xml,\!
artifact.repository.factory.order=compositeArtifacts.xml,\!
EOM
genie.edapt@build:~> exit 0
logout
Connection to projects-storage.eclipse.org closed.
$ ssh-agent -k
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 73 killed;
[ssh-agent] Stopped.
Finished: SUCCESS