Ticket #9877 (closed: fixed)
Jenkins build scripts should be able to select a build configuration based on the job name
Reported by: | Martyn Gigg | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | major | Milestone: | Release 3.3 |
Component: | Framework | Keywords: | Maintenance |
Cc: | Blocked By: | ||
Blocking: | Tester: | Michael Reuter |
Description
The Jenkins buildscript are currently hard-coded for release builds.
We want to be able to put the Jenkins debug Windows build on the new server. We could just duplicate the script in the Jenkins job configuration but it seems more sensible to reuse the script to keep the commonality.
We can use the job name to select the configuration. If
- debug in name -> select Debug build
- relwithdbg in name -> select RelWithDbg build
- else -> select Release
Change History
comment:1 Changed 6 years ago by Martyn Gigg
- Status changed from new to assigned
- Keywords Maintenance added
comment:2 Changed 6 years ago by Martyn Gigg
- Status changed from assigned to inprogress
Allow build config to be controlled by job name.
Refs #9877
Changeset: b8a7d51cf16df7d68558e89496d8673eb42b434d
comment:3 Changed 6 years ago by Martyn Gigg
Fix logic error buildscript bat file.
The string-contains check requires a not for it to be considered true as the test is whether replacing the word in the string produces the same result. If it does not then it is considered to be in the string.
Refs #9877
Changeset: 8811af1f83f434c2ce734c6a4c7f20abbf4cb5d3
comment:4 Changed 6 years ago by Martyn Gigg
Branch: feature/9877_jenkins_buildscript_configurations
Tester: This is just about enabling the build scripts to select the build configuration based on the job name - the debug build is not passing yet.
Check that the standard builds are building in release: http://builds.mantidproject.org/view/Develop%20Builds/job/develop_incremental/label=win7-build/1050/consoleFull
Check that the new debug build is building in debug: http://builds.mantidproject.org/view/Develop%20Builds/job/develop_clean_win7_debug/1/consoleFull
comment:5 Changed 6 years ago by Martyn Gigg
- Status changed from inprogress to verify
- Resolution set to fixed
comment:6 Changed 6 years ago by Michael Reuter
- Status changed from verify to verifying
- Tester set to Michael Reuter
comment:7 Changed 6 years ago by Michael Reuter
- Status changed from verifying to closed
Merge remote-tracking branch 'origin/feature/9877_jenkins_buildscript_configurations'
Full changeset: e59142c355e6a453626b3e50a8f24675874ee4b6