docker-compose up
Then setup project with github repository
When you first access a new Jenkins instance, you are asked to unlock it using an automatically-generated password.
-
After the 2 sets of asterisks appear in the terminal/command prompt window, browse to http://localhost:8038 and wait until the Unlock Jenkins page appears.
-
From your terminal/command prompt window again, copy the automatically-generated alphanumeric password (between the 2 sets of asterisks).
-
On the Unlock Jenkins page, paste this password into the Administrator password field and click Continue.
After unlocking Jenkins, the Customize Jenkins page appears.
On this page, click Install suggested plugins.
The setup wizard shows the progression of Jenkins being configured and the suggested plugins being installed. This process may take a few minutes.
Finally, Jenkins asks you to create your first administrator user with username and password are jenkins/jenkins
-
When the Create First Admin User page appears, specify your details in the respective fields and click Save and Finish.
-
When the Jenkins is ready page appears, click Start using Jenkins. Notes: This page may indicate Jenkins is almost ready! instead and if so, click Restart. If the page doesn’t automatically refresh after a minute, use your web browser to refresh the page manually.
-
If required, log in to Jenkins with the credentials of the user you just created and you’re ready to start using Jenkins!
-
Enter git repository name and select type is pipeline, click OK
-
Enter repo config and save.
- In
Build Triggers
section, check toGitHub hook trigger for GITScm polling
- In
Pipeline
section, select DenfinitionPipeline script from SCM
, enter git repository to work with
- In
Apply similar to other repository...