Skip to content

Commit

Permalink
Merge pull request coreos#40 from cgwalters/db-diff
Browse files Browse the repository at this point in the history
treecompose: Add db-diff
  • Loading branch information
openshift-merge-robot authored May 17, 2018
2 parents ddeb4c2 + 3f4b5e4 commit 54f3f6b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Jenkinsfile.treecompose
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ def DOCKER_ARGS = "--net=host -v /srv:/srv --privileged"
def repo = "${env.ARTIFACT_SERVER_DIR}/repo"

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

node(env.NODE) {
checkout scm
Expand Down Expand Up @@ -45,8 +46,11 @@ node(env.NODE) {
}

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

stage("Sync Out") {
Expand Down

0 comments on commit 54f3f6b

Please sign in to comment.