-
Notifications
You must be signed in to change notification settings - Fork 8
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
Create Jenkinsfile #7
Create Jenkinsfile #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will not work in such way. For common definitions there should be a singleJenkinsfile
in the repository root, which runs CI for the entire repository
Jenkinsfile
Outdated
stage("Test") { | ||
sh 'echo this is stage Test' | ||
sh 'export GOSS_FILES_STRATEGY=cp && /usr/local/bin/dgoss run --name jenkins-docker-dgoss-test | ||
--rm -ti docker_image' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you need this line break?
@Nancy-Chauhan Maybe you could try https://github.com/mschuchard/jenkins-devops-libs/blob/master/docs/Goss.md from @mschuchard |
I am not sure if the My specific note on it was:
|
return stages | ||
} | ||
|
||
node('master') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to enable a retention strategy here.
E.g. https://github.com/jenkinsci/jenkins/blob/master/Jenkinsfile#L16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure whether it works inside node()
, but I will give it a try
@mschuchard thanks for the response! I think we will have a follow-up with @Nancy-Chauhan about the dgoss adoption on the instance. |
Added simple Jenkinsfiles to agent images