Skip to content

fix: typo in find command was causing pulumi stacks to not be deleted #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extras/jenkins/AWS/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ pipeline {

sh '''
$WORKSPACE/bin/destroy.sh
find . -mindepth 2 -maxdepth 6 -type f -name Pulumi.yaml -execdir pulumi stack rm marajenkaws${BUILD_NUMBER} --force --yes \\;
find . -mindepth 2 -maxdepth 6 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenkaws${BUILD_NUMBER} --force --yes \;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for my learning, what was the additional change here? It appears now to be in line with the other workflows, but I wonder why it was different in the first place.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two reasons - first I wanted to keep them all consistent and second I wanted to make sure that we are always using the pulumi binary that we install in the venv. I've been using the jenkinsfiles as a template for other scripts / processes (like the UDF work) so I want to make sure that we're a bit tighter here.

'''
}
}
Expand Down
2 changes: 1 addition & 1 deletion extras/jenkins/DigitalOcean/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ pipeline {
# Destroy our partial build...
$WORKSPACE/bin/destroy.sh || true
# Clean up the Pulumi stack if it exists for our run - which it shouldn\'t, but you never know.
find $WORKSPACE -mindepth 2 -maxdepth 7 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenk${BUILD_NUMBER} --force --yes \\;
find $WORKSPACE -mindepth 2 -maxdepth 7 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenk${BUILD_NUMBER} --force --yes \;
'''
}
}
Expand Down
2 changes: 1 addition & 1 deletion extras/jenkins/K3S/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ pipeline {
/usr/local/bin/k3s-killall.sh || true
/usr/local/bin/k3s-uninstall.sh || true
# Clean up the Pulumi stack if it exists for our run - which it shouldn\'t, but you never know.
find $WORKSPACE -mindepth 2 -maxdepth 7 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenk${BUILD_NUMBER} --force --yes \\;
find $WORKSPACE -mindepth 2 -maxdepth 7 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenk${BUILD_NUMBER} --force --yes \;
'''
}
}
Expand Down
2 changes: 1 addition & 1 deletion extras/jenkins/Linode/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pipeline {
# Destroy our partial build...
$WORKSPACE/bin/destroy.sh || true
# Clean up the Pulumi stack if it exists for our run - which it shouldn\'t, but you never know.
find $WORKSPACE -mindepth 2 -maxdepth 7 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenk${BUILD_NUMBER} --force --yes \\;
find $WORKSPACE -mindepth 2 -maxdepth 7 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenk${BUILD_NUMBER} --force --yes \;
'''
}
}
Expand Down
2 changes: 1 addition & 1 deletion extras/jenkins/MicroK8s/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pipeline {
# True if it’s not there…
snap remove microk8s || true
# Clean up the Pulumi stack if it exists for our run - which it shouldn\'t, but you never know.
find $WORKSPACE -mindepth 2 -maxdepth 7 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenk${BUILD_NUMBER} --force --yes \\;
find $WORKSPACE -mindepth 2 -maxdepth 7 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenk${BUILD_NUMBER} --force --yes \;
'''
}
}
Expand Down
2 changes: 1 addition & 1 deletion extras/jenkins/Minikube/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ _EOF_
# True if it's not there
minikube delete || true
# Clean up the Pulumi stack if it exists for our run - which it shouldn\'t, but you never know.
find $WORKSPACE -mindepth 2 -maxdepth 7 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenk${BUILD_NUMBER} --force --yes \\;
find $WORKSPACE -mindepth 2 -maxdepth 7 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenk${BUILD_NUMBER} --force --yes \;
'''
}
}
Expand Down