buildOnlyIfChanges check not working in build definition for jenkins job
Having a Jenkins build definition scheduled for every 2 hours that has enabled the checks
- Accept latest changes before loading
- Build only if there are changes accepted
- the workspace was not loaded and directory not present.
- Workspace has been loaded previously therefore workspace content is downloaded upfront build triggering.
5 answers
Nobody can help ??
Command line build def works fine, the one that does not work is with jenkins build definition.
Yes i tried that, the workspace remains unchanged, is like when the build definition is of jenkins-hudson type is not verifying this, cos as i said when the definition is as build engine command line works as expected so as workaround im using curl to trigger the builds, and i can see in the logs.
the RTC log ?, I actually can not find any link to the log in the build overview.
Comments
You can provide the console output from the Jenkins build. You can find the link to the Jenkins build in the external links tab of the RTC build result.
https://jazz.net/library/article/92827 shows the Jenkins Console log and how to get more details into it as well.
Here is the beginning of the jenkins console log, but here there is no logging related to the checkout and accept of the workspace configured in the build definition, the checkout that appears in the log is for the pipeline script ( which is part of Jenkins pipeline configuration)
Started by user RDG Dev Build User Lightweight checkout support not available, falling back to full checkout. Checking out teamconcert-https://s-cc-rwp01.net1.cec.eu.int:9443/jazz-RTC-BuildSystem-Toolkit-Linux-6.0.3 into /ec/local/data/jenkins-data/jobs/Sygma14.0-CI-Pipeline/workspace@script to read Jenkins/sygma_ci.pipeline RTC : checkout... Using stream configuration. Fetching files from repository workspace "HJP_1565280532466". RTC Checkout : Fetching files to fetch destination "/ec/local/data/jenkins-data/pipelines" ... RTC Checkout : Fetching Completed Running in Durability level: MAX_SURVIVABILITY [Pipeline] Start of Pipeline [Pipeline] node Running on tournai in /ec/local/data/jenkins-data/workspace/Sygma14.0-CI-Pipeline [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout RTC : checkout... [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $RTC or $RTC_USR or $RTC_PSW or $DOCKER or $DOCKER_USR or $DOCKER_PSW
Comments
Sridevi Sangaiah
JAZZ DEVELOPER Jul 25 '19, 1:22 a.m.Rodrigo Jimenez
Jul 25 '19, 5:28 a.m.About situation 1, components in flow stream and workspace are the same.