File tree Expand file tree Collapse file tree 2 files changed +76
-0
lines changed
headless-services/jdt-ls-extension Expand file tree Collapse file tree 2 files changed +76
-0
lines changed Original file line number Diff line number Diff line change 51
51
<signing .skip>true</signing .skip>
52
52
<signing .alias>vmware</signing .alias>
53
53
<misc .p2.repo.version>3.9.4.202211021051</misc .p2.repo.version>
54
+
55
+ <vm-signing .ssh.user>signer</vm-signing .ssh.user>
56
+ <vm-signing .ssh.key>/home/bamboo/.ssh/id_rsa</vm-signing .ssh.key>
54
57
</properties >
55
58
56
59
<profiles >
61
64
<signing .key.password>${env.bamboo_vault_signing_passphrase} </signing .key.password>
62
65
</properties >
63
66
</profile >
67
+
68
+ <profile >
69
+ <id >vm-signing</id >
70
+ <build >
71
+ <plugins >
72
+ <plugin >
73
+ <artifactId >exec-maven-plugin</artifactId >
74
+ <groupId >org.codehaus.mojo</groupId >
75
+ <executions >
76
+ <execution >
77
+ <id >VM JAR Sign</id >
78
+ <phase >package</phase >
79
+ <goals >
80
+ <goal >exec</goal >
81
+ </goals >
82
+ </execution >
83
+ </executions >
84
+ <configuration >
85
+ <arguments >
86
+ <argument >${project.build.directory} </argument >
87
+ </arguments >
88
+ </configuration >
89
+ </plugin >
90
+ </plugins >
91
+ </build >
92
+ </profile >
64
93
</profiles >
65
94
66
95
<repositories >
98
127
<url >https://dist.springsource.com/release/TOOLS/third-party/misc-p2-repo/${misc.p2.repo.version} </url >
99
128
</repository >
100
129
</repositories >
130
+
101
131
<build >
102
132
<plugins >
103
133
176
206
</plugin >
177
207
178
208
</plugins >
209
+
210
+ <pluginManagement >
211
+ <plugins >
212
+ <plugin >
213
+ <artifactId >exec-maven-plugin</artifactId >
214
+ <groupId >org.codehaus.mojo</groupId >
215
+ <configuration >
216
+ <executable >scripts/sign-jars.sh</executable >
217
+ <environmentVariables >
218
+ <SSH_USER >${vm-signing.ssh.user} </SSH_USER >
219
+ <SSH_KEY >${vm-signing.ssh.key} </SSH_KEY >
220
+ </environmentVariables >
221
+ </configuration >
222
+ </plugin >
223
+ </plugins >
224
+ </pluginManagement >
225
+
179
226
</build >
180
227
</project >
Original file line number Diff line number Diff line change
1
+ set -e
2
+ target_folder=$1
3
+ if [ -d " $target_folder " ]
4
+ then
5
+ echo " Sign JARs in directory: $target_folder "
6
+ files=` ls $target_folder `
7
+ for file in $files
8
+ do
9
+ # echo "Found $file..."
10
+ if ! [ -d $file ]
11
+ then
12
+ # echo "Looking at: $target_folder/$file"
13
+ extension=" ${file##* .} "
14
+ # echo "Detected extension = $extension"
15
+ if [ " $extension " = " jar" ]
16
+ then
17
+ echo " Copying $file to remote machine..."
18
+ scp -i $SSH_KEY $target_folder /$file $SSH_USER @vm-tools.spring.vmware.com:/opt/bamboo
19
+ echo " Signing $file ..."
20
+ ssh -i $SSH_KEY $SSH_USER @vm-tools.spring.vmware.com -- /build/apps/signing/signserver/signc -v --input=/opt/bamboo/$file --keyid=jarsign_vmware --signmethod=" jdk-1.8.0_121" --output=/opt/bamboo/$file
21
+ echo " Copying **signed** $file back... (into $target_folder /$file )"
22
+ scp -i $SSH_KEY $SSH_USER @vm-tools.spring.vmware.com:/opt/bamboo/$file $target_folder /$file
23
+ echo " Cleaning up remote machine..."
24
+ ssh -i $SSH_KEY $SSH_USER @vm-tools.spring.vmware.com -- rm /opt/bamboo/$file
25
+ echo " Successfully signed $file "
26
+ fi
27
+ fi
28
+ done
29
+ fi
You can’t perform that action at this time.
0 commit comments