Skip to content
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

Use devspace as validator rather then omero-build? #124

Open
2 tasks
joshmoore opened this issue Mar 20, 2019 · 2 comments
Open
2 tasks

Use devspace as validator rather then omero-build? #124

joshmoore opened this issue Mar 20, 2019 · 2 comments

Comments

@joshmoore
Copy link
Member

joshmoore commented Mar 20, 2019

Currently omero-build is the primary repository for checking the build status of downstream PRs, leading it to have a more complicated travis script, see https://github.com/ome/omero-build/blob/master/travis.sh

Adding in Bio-Formats to that script would further complicate matters. Perhaps this repository is a more natural location for that. However, to do so, it will be necessary to either spin up a devspace and check its status with a single script or run parts of this repository with less overhead.


  • Auto-register for JDK without needing to enter ci/ext/oracle credentials
  • Generate snoopy token to not need to pass a SOURCE location
@joshmoore
Copy link
Member Author

As a starting point for the spin-up variant, here's a script I'm currently working from:

#!/usr/bin/env bash
set -e
set -u
set -x

SOURCE=$1
TOPIC=$2
test -e pipeline-configs.yaml
test -e slave/.ssh || cp -nr $SOURCE/.ssh slave/
test -e slave/.gitconfig || cp -nr $SOURCE/.gitconfig slave/
HOST_IP=$(histname -I | cut -f1 -d" ")
./sslcert jenkins/sslcert $HOST_IP
./sslcert nginx/sslcert $HOST_IP
python ./rename.py $TOPIC

PASSWORD=$(openssl rand -hex 32)
sed -i "s/JENKINS_PASSWORD=devspace/JENKINS_PASSWORD=$PASSWORD/" .env

git commit -a -m "Local changes for $TOPIC"

echo PASSWORD: $PASSWORD

@joshmoore
Copy link
Member Author

As a starting point for the "run parts" variant, @manics found:

https://github.com/jenkinsci/jenkinsfile-runner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant