Skip to content

Commit 54f3f6b

Browse files
Merge pull request coreos#40 from cgwalters/db-diff
treecompose: Add db-diff
2 parents ddeb4c2 + 3f4b5e4 commit 54f3f6b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Jenkinsfile.treecompose

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ def DOCKER_ARGS = "--net=host -v /srv:/srv --privileged"
55
def repo = "${env.ARTIFACT_SERVER_DIR}/repo"
66

77
def manifest = "host-rhcos.json"
8+
def ref = "openshift/3.10/x86_64/os";
89

910
node(env.NODE) {
1011
checkout scm
@@ -45,8 +46,11 @@ node(env.NODE) {
4546
}
4647

4748
stage("Compose Tree") {
48-
sh "rpm-ostree compose tree --repo=${repo} ${manifest} --write-commitid-to $WORKSPACE/commit.txt"
49-
currentBuild.description = '🆕 commit ' + readFile('commit.txt');
49+
sh "rpm-ostree compose tree --repo=${repo} ${manifest}"
50+
sh "ostree --repo=${repo} rev-parse ${ref} > commit.txt"
51+
def commit = readFile('commit.txt');
52+
currentBuild.description = '🆕 commit ' + commit;
53+
sh "rpm-ostree db diff ${commit}^ ${commit}"
5054
}
5155

5256
stage("Sync Out") {

0 commit comments

Comments
 (0)