Skip to content

fyutg #2

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

Open
wants to merge 152 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
4aa675a
Updated Jenkins File
MohanSairam423 Aug 19, 2019
24a39dd
Updated Tests
MohanSairam423 Aug 19, 2019
5df3188
Updated Jenkins File
MohanSairam423 Aug 22, 2019
89c6b53
Updated Integration tests
MohanSairam423 Aug 22, 2019
51708e6
Updated Jenkins file
MohanSairam423 Aug 22, 2019
f5bdd61
Updated Jenkins File
MohanSairam423 Sep 10, 2019
5ccf0f6
Updated Jenkins File
MohanSairam423 Sep 10, 2019
ac44dd3
Updated Jenkins File
MohanSairam423 Sep 10, 2019
e0d633f
Updated Jenkins File
MohanSairam423 Sep 10, 2019
22d343a
Updated Jenkins File
MohanSairam423 Sep 10, 2019
54bad98
Updated Jenkins File
MohanSairam423 Sep 10, 2019
a3acfc7
Updated Jenkins File
MohanSairam423 Sep 10, 2019
c12318b
Updated Jenkins File
MohanSairam423 Sep 10, 2019
d575897
Updated Jenkins File
MohanSairam423 Sep 10, 2019
93a5d65
Updated Jenkins File
MohanSairam423 Sep 11, 2019
cf45f3b
Updated Jenkins File
MohanSairam423 Sep 11, 2019
b5acddd
Updated Jenkins File
MohanSairam423 Sep 11, 2019
7f7b925
Updated Jenkins File
MohanSairam423 Sep 11, 2019
7de1a64
Updated with wrong test
MohanSairam423 Sep 11, 2019
10a5fac
Updated Tests
MohanSairam423 Sep 13, 2019
f68c2b6
Updated Tests
MohanSairam423 Sep 13, 2019
552a898
Updated Test
MohanSairam423 Sep 13, 2019
552bd2d
First Change
MohanSairam423 Sep 16, 2019
96e2232
Second Change
MohanSairam423 Sep 16, 2019
e536808
Third change
MohanSairam423 Sep 16, 2019
c051628
Updated Jenkins File
MohanSairam423 Sep 17, 2019
32bcaa7
Merge pull request #1 from MohanSairam423/MohanSairam423-patch-1
MohanSairam423 Sep 17, 2019
b0b7168
Updated Jenkins File
MohanSairam423 Sep 17, 2019
fd306d9
Merge pull request #2 from MohanSairam423/MohanSairam423-patch-1
MohanSairam423 Sep 17, 2019
fdf7fa9
Updated Jenkins File
MohanSairam423 Sep 17, 2019
3b46662
Merge pull request #3 from MohanSairam423/MohanSairam423-patch-1
MohanSairam423 Sep 17, 2019
1a79408
Update Jenkins File
MohanSairam423 Sep 17, 2019
979cfd5
Updated Jenkins File
MohanSairam423 Sep 17, 2019
7fa7cd4
Updated Jenkins File
MohanSairam423 Sep 17, 2019
458ed35
Updated Jenkins File
MohanSairam423 Sep 17, 2019
5d8bc09
Updated Jenkins File
MohanSairam423 Sep 17, 2019
1ad9baf
Updated Jenkins File
MohanSairam423 Sep 17, 2019
006c246
Updated Jenkins File
MohanSairam423 Sep 17, 2019
878fa19
STP-11: Test Commit
MohanSairam423 Oct 14, 2019
398d99c
PPM-4: Test Commit
MohanSairam423 Oct 14, 2019
6d26fe9
PPM-4: Test Commit
MohanSairam423 Oct 14, 2019
cca621e
PPM-4: Test Commit
MohanSairam423 Oct 14, 2019
b4fb711
PPM-4: Test Commit
MohanSairam423 Oct 14, 2019
5b81fd4
PPM-3: Test Commit
MohanSairam423 Oct 14, 2019
bc46984
PPP-8: Test Commit
MohanSairam423 Oct 14, 2019
f85357d
PPM-4: Test Commit
MohanSairam423 Oct 14, 2019
2f8ccbf
PPM-2: Test Commit
MohanSairam423 Oct 14, 2019
ef4d4ce
PPM-1: Test Commit
MohanSairam423 Oct 14, 2019
bd8c0b4
Test Commit
MohanSairam423 Oct 16, 2019
f7944bc
Test Commit
MohanSairam423 Oct 16, 2019
c11251b
Test Commit
MohanSairam423 Oct 17, 2019
05ec2f9
Test Commit
MohanSairam423 Oct 17, 2019
3bdc767
Test Commit
MohanSairam423 Oct 17, 2019
0aa1607
Test Commit
MohanSairam423 Oct 17, 2019
03f6abe
Test Commit
MohanSairam423 Oct 17, 2019
c1d4e51
Test Commit
MohanSairam423 Oct 17, 2019
4ce58ab
Test Commit
MohanSairam423 Oct 17, 2019
4c0f400
Test Commit
MohanSairam423 Oct 17, 2019
bf4fa93
Test Commit
MohanSairam423 Oct 17, 2019
7ecd5f7
Test Commit
MohanSairam423 Oct 17, 2019
2a93926
Test Commit
MohanSairam423 Oct 17, 2019
a3d690c
Test Commit
MohanSairam423 Oct 17, 2019
c9b4edc
Test Commit
MohanSairam423 Oct 17, 2019
76f4f4d
Test Commit
MohanSairam423 Oct 17, 2019
ddf7754
Test Commit
MohanSairam423 Oct 30, 2019
53d9ea7
Updated Jenkins File
MohanSairam423 Dec 6, 2019
5a680c5
Updated Jenkins File
MohanSairam423 Dec 6, 2019
78e07a7
Updated Jenkins File
MohanSairam423 Dec 6, 2019
b019485
Updated Jenkins File
MohanSairam423 Dec 6, 2019
e53767d
Updated Jenkins File
MohanSairam423 Dec 10, 2019
55541bf
Updated Jenkins File
MohanSairam423 Dec 10, 2019
127cc71
Updated Jenkins File
MohanSairam423 Jan 2, 2020
5f62441
Updated Jenkins File
MohanSairam423 Jan 2, 2020
0ae03aa
Updated Jenkins File
MohanSairam423 Jan 3, 2020
54abcaa
Updated Jenkins File
MohanSairam423 Jan 6, 2020
55a3c8d
Updated Jenkins File
MohanSairam423 Jan 6, 2020
459ddbb
Updated Jenkins File
MohanSairam423 Jan 6, 2020
4a4c495
test Commit
MohanSairam423 Jan 6, 2020
24afd51
Test
MohanSairam423 Jan 6, 2020
7a8d464
Test
MohanSairam423 Jan 6, 2020
a14c423
Test
MohanSairam423 Jan 6, 2020
57a43c1
Updated Jenkins File
MohanSairam423 Jan 6, 2020
cf00fcd
Test
MohanSairam423 Jan 6, 2020
7b5ba01
Updated Jenkins File
MohanSairam423 Jan 6, 2020
6515b78
Updated Jenkins File
MohanSairam423 Jan 6, 2020
c358b16
Updated Jenkins File
MohanSairam423 Jan 6, 2020
eaaa900
Updated Jenkins File
MohanSairam423 Jan 6, 2020
dff86c1
Test
MohanSairam423 Jan 6, 2020
319997b
Test commit
MohanSairam423 Jan 6, 2020
64c713b
test
MohanSairam423 Jan 6, 2020
ea91e21
Test
MohanSairam423 Jan 6, 2020
874b6a2
Test Commit
MohanSairam423 Jan 6, 2020
cc5e35a
Test Commit
MohanSairam423 Jan 6, 2020
d10ac50
Test Commit
MohanSairam423 Jan 7, 2020
6fecff1
Test Commit
MohanSairam423 Jan 7, 2020
40c631c
Test Commit
MohanSairam423 Jan 7, 2020
0f39d19
Test Commit
MohanSairam423 Jan 7, 2020
1a5245b
Test Commit
MohanSairam423 Jan 10, 2020
db3b0b3
Test Commit
MohanSairam423 Jan 10, 2020
83a573e
Test Commit
MohanSairam423 Jan 10, 2020
870449e
Test Commit
MohanSairam423 Jan 10, 2020
1d7d89f
Test Commit
MohanSairam423 Jan 10, 2020
ed71b9c
Test Commit
MohanSairam423 Jan 10, 2020
10dd8bc
Test Commit
MohanSairam423 Jan 10, 2020
bfb96a2
Test Commit
MohanSairam423 Jan 29, 2020
a1b6b8e
Test Commit
MohanSairam423 Jan 29, 2020
35e4f7d
Test Commit
MohanSairam423 Jan 29, 2020
2c40a2f
Test Commit
MohanSairam423 Jan 30, 2020
9f1b779
Test Commit
MohanSairam423 Apr 1, 2020
437ade8
Commented Change Request
MohanSairam423 Jun 11, 2020
205b8ed
Added new stage
MohanSairam423 Jul 30, 2020
8c313a8
Test Commit
MohanSairam423 Jul 30, 2020
4cf914a
Test Commit
MohanSairam423 Jul 30, 2020
f423c47
Test Commit
MohanSairam423 Jul 30, 2020
ef9c6a0
Test Commit
MohanSairam423 Jul 30, 2020
d0d41cd
Test Commit
MohanSairam423 Aug 3, 2020
c7fc17a
Added snDevOpsStep
MohanSairam423 Aug 10, 2020
08d57f7
Removed special character
MohanSairam423 Aug 10, 2020
acb820c
Test Commit
MohanSairam423 Aug 10, 2020
c34feb7
Added extra change step
MohanSairam423 Sep 29, 2020
8a7b6cd
Removed substages
MohanSairam423 Sep 29, 2020
d2160e3
Removed snDevOpsStep in the pipeline
MohanSairam423 Sep 30, 2020
614d02a
Added sleep statement
MohanSairam423 Sep 30, 2020
066fe8d
Test Commit
MohanSairam423 Sep 30, 2020
ab02b79
Test Commit
MohanSairam423 Sep 30, 2020
30bc562
Test Commit
MohanSairam423 Sep 30, 2020
260c465
Test Commit
MohanSairam423 Sep 30, 2020
847aadd
Test Commit
MohanSairam423 Oct 1, 2020
b2b7308
Test Commit
MohanSairam423 Oct 6, 2020
96e30f4
Test Commit
MohanSairam423 Oct 6, 2020
4dd8b38
Test Commit
MohanSairam423 Oct 8, 2020
c0b3328
Test Commit
MohanSairam423 Oct 8, 2020
544a996
Test Commit
MohanSairam423 Oct 8, 2020
161bc47
Test Commit
MohanSairam423 Oct 8, 2020
2472519
Test Commit
MohanSairam423 Oct 8, 2020
a396b17
Test Commit
MohanSairam423 Oct 8, 2020
11bf74b
Test Commit
MohanSairam423 Oct 8, 2020
2d23ca8
Test Commit
MohanSairam423 Oct 8, 2020
d20e20f
Test Commit
MohanSairam423 Oct 8, 2020
84b18fa
Test Commit
MohanSairam423 Oct 9, 2020
4b7f30f
Test Commit
MohanSairam423 Oct 9, 2020
b2b17c3
Test Commit
MohanSairam423 Oct 9, 2020
49d2e32
Test Commit
MohanSairam423 Oct 9, 2020
d813afe
Test Commit
MohanSairam423 Jan 18, 2021
e01a59d
Test Commit
MohanSairam423 Feb 23, 2021
0683f53
Test Commit
MohanSairam423 Feb 23, 2021
35c7e8c
Test Commit
MohanSairam423 Feb 23, 2021
04c2e79
Test Commit
MohanSairam423 Mar 23, 2021
c1523a9
Test Commit
MohanSairam423 Apr 28, 2021
0535582
Test Commit
MohanSairam423 May 7, 2021
e890854
Test Commit
MohanSairam423 May 7, 2021
403f154
Test Commit
MohanSairam423 May 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 115 additions & 14 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,129 @@
pipeline {
agent any
stages {
stage('Compile') {
steps {
sh 'mvn clean package -DskipTests=true'

stage('CI-Test') {
stages {
stage("Staging-Deploy1") {
steps {
snDevOpsStep()
snDevOpsChange()
echo 'test'
}
}
stage("Send-Report1") {
stages {
stage("Alert-If-Issues1") {
steps {
//withSonarQubeEnv('LocalSonar') {
// sh '/Applications/SonarScanner/bin/sonar-scanner -Dproject.settings=/Applications/sonar-scanner.properties'
//sh 'env'
//}
snDevOpsStep()
echo 'test'
}
}
stage("Conclude1") {
steps {
snDevOpsStep()
echo 'test'
}
}
}
}
}
}
stage('Unit Tests') {

stage('CI') {
steps {
sh 'mvn surefire:test'
//snDevOpsStep()
echo 'test'
}
}
stage('Integration Tests') {
steps {
sh 'mvn failsafe:integration-test'
stage('UAT deploy') {
stages {
stage("Staging-Deploy") {
steps {
snDevOpsStep()
echo 'test'
}
}
stage("Send-Report") {
stages {
stage("Alert-If-Issues") {
steps {
snDevOpsStep()
snDevOpsChange()
echo 'test'
}
}
stage("Conclude") {
steps {
snDevOpsStep()
echo 'test'
}
}
}
}
}
}
}
post {
always {
junit 'target/surefire-reports/TEST-*.xml'
stage('UAT test') {
parallel {
stage('UAT test test1') {
steps {
echo 'test'
}
post {
success {
echo 'test'
}
}
}
stage('UAT static code test') {
steps {
snDevOpsStep()
snDevOpsChange()
echo 'test'
}
}
}
}

stage('Pre Prod') {
stages {
stage('Pre_Prod_Sub1') {
steps {
echo 'test'
}
}
stage('Pre_Prod_Sub2') {
steps{
echo 'test'
}
}
}
}

stage('PROD') {
stages{
stage('sub-prod') {
steps {
snDevOpsStep()
snDevOpsChange()
}
}
}
}
failure {
mail to: 'kiwaczki@gmail.com', subject: 'The Pipeline failed :(', body:'The Pipeline failed :('


stage('PROD1') {
stages{
stage('sub-prod') {
steps {
sleep 100
}
}
}
}
}
}
44 changes: 44 additions & 0 deletions Jenkinsfile1
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
pipeline {
agent any
stages {

stage('CI-Test') {
steps {
snDevOpsStep()
//sleep 10
echo 'test'
}
}

stage('CI') {
steps {
//snDevOpsStep()
snDevOpsChange()
echo 'test'
}
}
stage('UAT deploy') {
steps {
//snDevOpsStep()
//sleep 10
echo 'test'
}
}
stage('UAT test') {
steps {
//snDevOpsStep()
snDevOpsChange()
echo 'test'
}
}


stage('PROD') {
steps {
//snDevOpsStep()
snDevOpsChange()
echo 'test'
}
}
}
}
14 changes: 14 additions & 0 deletions Jenkinsfile2
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pipeline {
agent any
stages {

stage('CI-Test') {
steps {
snDevOpsStep()
snDevOpsChange()
//sleep 10
echo 'test'
}
}
}
}
2 changes: 1 addition & 1 deletion src/test/java/com/pik/contact/cucumber/StepDefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void the_status_code_should_be(int code) throws Throwable {

@Then("^it should have the field \"([^\"]*)\" containing the value \"([^\"]*)\"$")
public void it_should_have_the_field_containing_the_value(String field, String value) throws Throwable {
mvcResult.andExpect(jsonPath("$." + field, is(value)));
mvcResult.andExpect(jsonPath("$." + field, is("test")));
}

@Then("^it should have the field \"([^\"]*)\" containing the value (\\d+)$")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
import static com.pik.contact.gui.selenium.setup.SeleniumDriver.getDriver;
import static org.assertj.core.api.Assertions.assertThat;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
//@RunWith(SpringRunner.class)
//@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class ContactsTest {

@Value("${local.server.port}")
int port;

@AfterClass
//@AfterClass
public static void tearDown() {
getDriver().close();
}

@Test
//@Test
public void should_display_contact() throws Exception {
//given
ContactsPage contactsPage = new ContactsPage(port).open();
Expand Down