I have a job whose source code is in git. I have run this job previously and always stated at the beginning of log "Building on master in workspace D:\jenkins\workspace\CCI_MDM_BUILD1". All of a sudden it now says "Building remotely on 2-MTC-MDM-PRD-IM in workspace /export/local/mdmadmin/jenkins/workspace/CCI_MDM_BUILD1" How do i get it to build on master ONLY?
Please don't use issues for question and answer. The chat systems and mailing lists are much better suited to question and answer.
To restrict a job to run only on master, PIpeline jobs can require the label 'master'. Freestyle jobs can use the "Restrict where this job can run" setting to limit the job to run on master.