Skip to content

Instantly share code, notes, and snippets.

@rajdavies
Created February 13, 2018 15:45
Show Gist options
  • Save rajdavies/f5b5a32a33b42d1e2a1adae8f251b1cb to your computer and use it in GitHub Desktop.
Save rajdavies/f5b5a32a33b42d1e2a1adae8f251b1cb to your computer and use it in GitHub Desktop.
rajdavies@robmac:~/dev/projects/go/src/github.com/jenkins-x/godog-jenkins/jx/import$ godog
Feature: jx import
As a developer
I need to be able to import an existing directory and have jx setup the CI / CD
Scenario: SpringBoot sample application can be imported and built # features/import.feature:5
Given a directory containing a Spring Boot application # import_test.go:89 -> *importTest.aDirectoryContainingASpringBootApplication
Using git provider URL github.com
Initialized empty Git repository in /private/var/folders/d_/87145mtd3gdbb2c82lb9j4zw0000gn/T/import-008538060/.git/
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .gitignore
new file: mvnw
new file: mvnw.cmd
new file: pom.xml
new file: src/main/java/com/example/demo/DemoApplication.java
new file: src/main/resources/application.properties
new file: src/test/java/com/example/demo/DemoApplicationTests.java
[master (root-commit) 1881ff8] Initial import
7 files changed, 460 insertions(+)
create mode 100755 .gitignore
create mode 100755 mvnw
create mode 100644 mvnw.cmd
create mode 100644 pom.xml
create mode 100644 src/main/java/com/example/demo/DemoApplication.java
create mode 100644 src/main/resources/application.properties
create mode 100644 src/test/java/com/example/demo/DemoApplicationTests.java
Git repository created
--> Ready to sail
[master db1e6b6] Draft create
12 files changed, 208 insertions(+)
create mode 100644 .draftignore
create mode 100644 Dockerfile
create mode 100755 charts/import-008538060/.helmignore
create mode 100644 charts/import-008538060/Chart.yaml
create mode 100755 charts/import-008538060/Makefile
create mode 100755 charts/import-008538060/README.md
create mode 100755 charts/import-008538060/templates/NOTES.txt
create mode 100755 charts/import-008538060/templates/_helpers.tpl
create mode 100755 charts/import-008538060/templates/deployment.yaml
create mode 100755 charts/import-008538060/templates/service.yaml
create mode 100755 charts/import-008538060/values.yaml
create mode 100644 draft.toml
[master 249e747] Added Release Dockerfile pipeline
1 file changed, 7 insertions(+)
create mode 100755 Dockerfile.release
[master cc40aa0] Added default Jenkinsfile pipeline
1 file changed, 56 insertions(+)
create mode 100755 Jenkinsfile
Using git provider GitHub at github.com
About to create a repository on server github.com with user rajdavies
? Which organisation do you want to use?
jboss-fuse
jenkins-x
jenkinsci
jimagezip
koolapp
❯ rajdavies
syndesisio
error: EOF
Error: Command failed jx import -b --git-provider-url github.com
When running "jx import" in that directory # import_test.go:90 -> *importTest.runningInThatDirectory
exit status 1
Then there should be a jenkins project created # import_test.go:92 -> *importTest.thereShouldBeAJenkinsProjectCreate
And the application should be built and promoted via CI / CD # import_test.go:93 -> *CommonTest
--- Failed scenarios:
features/import.feature:7
1 scenarios (1 failed)
4 steps (1 passed, 1 failed, 2 skipped)
1.362708283s
rajdavies@robmac:~/dev/projects/go/src/github.com/jenkins-x/godog-jenkins/jx/import$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment