Groups-dev distbuild checked wrong Git repository commit hash
The distbuild process checked .git/packed-refs instead of .git/refs/heads/master. This file is required for triggering automatic staging site rebuild. Change-Id: I177dda27140ac6af7f3c94c9b161b5b24c4ba0c0
This commit is contained in:
parent
1c70ce9072
commit
eb947f7a64
@ -53,15 +53,15 @@ define drupal::distbuild (
|
|||||||
timeout => 900,
|
timeout => 900,
|
||||||
cwd => "${site_sandbox_root}/${$site_build_repo_name}",
|
cwd => "${site_sandbox_root}/${$site_build_repo_name}",
|
||||||
command => "rm -rf ${site_staging_root}/${site_staging_tarball} && drush make --tar ${site_makefile} ${site_staging_root}/${site_staging_tarball}",
|
command => "rm -rf ${site_staging_root}/${site_staging_tarball} && drush make --tar ${site_makefile} ${site_staging_root}/${site_staging_tarball}",
|
||||||
unless => "diff ${site_sandbox_root}/${$site_build_repo_name}/.git/packed-refs ${site_build_flagfile}",
|
unless => "diff ${site_sandbox_root}/${$site_build_repo_name}/.git/refs/heads/master ${site_build_flagfile}",
|
||||||
require => File[$site_staging_root],
|
require => File[$site_staging_root],
|
||||||
subscribe => Vcsrepo["${site_sandbox_root}/${$site_build_repo_name}"],
|
subscribe => Vcsrepo["${site_sandbox_root}/${$site_build_repo_name}"],
|
||||||
}
|
}
|
||||||
|
|
||||||
exec { 'drupal-build-dist-post':
|
exec { 'drupal-build-dist-post':
|
||||||
path => '/usr/bin:/bin',
|
path => '/usr/bin:/bin',
|
||||||
command => "cp ${site_sandbox_root}/${$site_build_repo_name}/.git/packed-refs ${site_build_flagfile} && rm -rf ${site_deploy_flagfile}",
|
command => "cp ${site_sandbox_root}/${$site_build_repo_name}/.git/refs/heads/master ${site_build_flagfile} && rm -rf ${site_deploy_flagfile}",
|
||||||
unless => "diff ${site_sandbox_root}/${$site_build_repo_name}/.git/packed-refs ${site_build_flagfile}",
|
unless => "diff ${site_sandbox_root}/${$site_build_repo_name}/.git/refs/heads/master ${site_build_flagfile}",
|
||||||
subscribe => Vcsrepo["${site_sandbox_root}/${$site_build_repo_name}"],
|
subscribe => Vcsrepo["${site_sandbox_root}/${$site_build_repo_name}"],
|
||||||
require => Exec['drupal-build-dist'],
|
require => Exec['drupal-build-dist'],
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user