maxfields2000 / dockerjenkins_tutorial

A repository for items learned in my Getting Started with Jenkins and Docker tutorial series
Apache License 2.0
737 stars 325 forks source link

Wrong steps for jenkins2 tutorial #28

Closed SalahAdDin closed 6 years ago

SalahAdDin commented 8 years ago

Hi man, thanks for you grateful tutorial.

I have a question with the jenkins2 tutorial:

Create a new pipeline jenkins job
    Enter the following for the pipeline script:

node ('testslave') {

stage 'Stage 1' sh 'echo "Hello World!"'

}

Save job
Run job

You put this, but, the script only can we put in a pipeline project, but, restringe a project ejecution to jenkins-slave volumen only we can configure in a free style project, where we can't use scripts, in this case which correct setup steps?

maxfields2000 commented 7 years ago

IF you're going to try it in a Jenkins Freestyle project, just set the build job label to "testslave" and things should work.

If using pipeline the proper syntax is now:

stage ('Default Slave') {
    node ('testslave') {
        sh 'echo "You have spun up a basic slave!"'
    }
}

I also include a test/example job that works out of the box for reference.

SalahAdDin commented 7 years ago

@maxfields2000 When will we have your new tutorial?

I can't understand why put two compressed packages in the data container.

Whit the new plugins.sh official file we can install the plugins like your script.

And your scripts are very awesome :D

maxfields2000 commented 6 years ago

Sorry it took so long, the new tutorial will be out very soon! Next few days! The blog_refresh branch has the new stuff in it! It'll go to master ASAP after I do final tests.

SalahAdDin commented 6 years ago

@maxfields2000 Thank you, it is great!

maxfields2000 commented 6 years ago

New tutorial changes are now on Master and should be fixed, Blog update goes live in less than 48 hours, so going to close this. Thanks for the feedback and support so far!