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

JOB_NAME overwritten with name of another job running concurrently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • None
    • Latest Jenkins version 1.600

      After upgrading to latest version of Jenkins (1.600) from 1.598 I have experienced the described BUG.

      I run a Job named _BUILD_SETUP that creates a properties file. Such properties file is named as ${JOB_NAME}.properties and generated from a bash shell code.

      The problem is that JOB_NAME took the name of another Job that was already running on the same node (main) instead of "_BUILD_SETUP". This can be seen on environment variables (Notice JOB_NAME and JOB_URL variables):

      Build #697

      Environment variables

      Nombre ↓
      Valor
      _ /usr/bin/java
      BASE_SCM_URL http://wonka.arce/svn/oip
      BUILD_CAUSE UPSTREAMTRIGGER
      BUILD_CAUSE_UPSTREAMTRIGGER true
      BUILD_DISPLAY_NAME #697
      BUILD_ID 689
      BUILD_NUMBER 689
      BUILD_TAG jenkins-atms.foundation.core.ejb-689
      BUILD_URL http://jenkins_icm/jenkins/job/_SETUP_BUILD/697/
      CVS_RSH ssh
      ESB_APPS oip.alarms.esb.ws.app,oip.audit.rest.esb.app,oip.messaging.simple.esb.app,oip.osm.esb.app,tdf.bitcarrier.esb.app,tdf.tmdd.esb.app,tdf.gtfs.esb.app,tdf.tss.atms.esb.devices.app,oip.dtn.esb.app,barco.esb.devices.app,tss.atms.esb.devices.app,sign.atms.esb.devices.app,camera.atms.esb.devices.app,optimus.esb.devices.app,mist.esb.devices.app,mistpp.esb.devices.app,videorecorder.esb.devices.app
      EXECUTOR_NUMBER 4
      G_BROKEN_FILENAMES 1
      HISTSIZE 1000
      HOME /home/appusr
      HOSTNAME jenkins_icm
      http_proxy http://192.168.100.190:3130
      HUDSON_HOME /home/appusr/.jenkins
      HUDSON_SERVER_COOKIE e5521edd17bcb457
      HUDSON_URL http://jenkins_icm/jenkins/
      INPUTRC /etc/inputrc
      JAVA_HOME /usr/java/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
      JBOSS_HOME /home/appusr/jboss
      JENKINS_HOME /home/appusr/.jenkins
      JENKINS_SERVER_COOKIE e5521edd17bcb457
      JENKINS_URL http://jenkins_icm/jenkins/
      *JOB_NAME atms.foundation.core.ejb*
      *JOB_URL http://jenkins_icm/jenkins/job/_SETUP_BUILD/*
      LANG en_US.UTF-8
      LD_LIBRARY_PATH /usr/java/jrockit-jdk1.6.0_45-R28.2.7-4.1.0/jre/lib/amd64/jrockit:/usr/java/jrockit-jdk1.6.0_45-R28.2.7-4.1.0/jre/lib/amd64:/usr/java/jrockit-jdk1.6.0_45-R28.2.7-4.1.0/jre/../lib/amd64
      LESSOPEN |/usr/bin/lesspipe.sh %s
      LOGNAME appusr
      LS_COLORS no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:.cmd=01;32:.exe=01;32:.com=01;32:.btm=01;32:.bat=01;32:.sh=01;32:.csh=01;32:.tar=01;31:.tgz=01;31:.arj=01;31:.taz=01;31:.lzh=01;31:.zip=01;31:.z=01;31:.Z=01;31:.gz=01;31:.bz2=01;31:.bz=01;31:.tz=01;31:.rpm=01;31:.cpio=01;31:.jpg=01;35:.gif=01;35:.bmp=01;35:.xbm=01;35:.xpm=01;35:.png=01;35:.tif=01;35:
      MAIL /var/spool/mail/appusr
      MAIN_APP_BRANCH trunk
      NLSPATH /usr/dt/lib/nls/msg/%L/%N.cat
      no_proxy no_proxy=localhost,127.0.0.1,jenkins_icm,wonka.arce
      NODE_LABELS master
      NODE_NAME
      OIP_HOME /home/appusr/oip_home
      ORACLE false
      PATH /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/pgsql-9.1/bin:/home/appusr/bin:/home/appusr/maven3/bin
      PROJECT_GROUP icm.demo
      PWD /etc/init.d
      SHELL /bin/bash
      SHLVL 2
      SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass
      SSH_CLIENT XXXXXXXXXXXXXXXXX
      SSH_CONNECTION XXXXXXXXXXXXXXXXX
      SSH_TTY /dev/pts/2
      STRESS_LEVEL medium
      SUBSYSTEMS core,services,database,esb
      TARGET_ENV qa
      TARGET_ENV_CAT demo
      TERM vt100
      USER appusr
      XFILESEARCHPATH /usr/dt/app-defaults/%L/Dt

            Unassigned Unassigned
            fmiguelez Fernando Miguelez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: