]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: replace version number in project(..VERSION..) 1881/head
authorKefu Chai <kchai@redhat.com>
Mon, 19 Jul 2021 17:19:33 +0000 (01:19 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 19 Jul 2021 17:20:58 +0000 (01:20 +0800)
should be replace the VERSION number in project(...). this is the
authentic place to set version number.

Signed-off-by: Kefu Chai <kchai@redhat.com>
ansible/roles/ceph-release/tasks/main.yml

index 4dfd9dedaa2d6257d7dea5d7a032488f06488465..11fc0d533f0d2a0561f89d98f7e6aecf2874b402 100644 (file)
@@ -47,8 +47,8 @@
 
 - name: replace the version in CMakeLists.txt
   lineinfile: dest=ceph/CMakeLists.txt
-              regexp='^set\(VERSION '
-              line='set(VERSION {{ version }})'
+              regexp='^  VERSION \d+\.\d+\.\d+$'
+              line='  VERSION {{ version }}'
   when: cmake_lists.stat.exists
 
 - include: release/candidate.yml